Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/oldsite/vendor/bumbummen99/shoppingcart/src/ShoppingcartServiceProvider.php
Назад
<?php namespace Gloudemans\Shoppingcart; use Illuminate\Auth\Events\Logout; use Illuminate\Session\SessionManager; use Illuminate\Support\ServiceProvider; class ShoppingcartServiceProvider extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { $this->app->bind('cart', 'Gloudemans\Shoppingcart\Cart'); $config = __DIR__.'/Config/cart.php'; $this->mergeConfigFrom($config, 'cart'); $this->publishes([__DIR__.'/Config/cart.php' => config_path('cart.php')], 'config'); $this->app['events']->listen(Logout::class, function () { if ($this->app['config']->get('cart.destroy_on_logout')) { $this->app->make(SessionManager::class)->forget('cart'); } }); $this->publishes([ realpath(__DIR__.'/Database/migrations') => $this->app->databasePath().'/migrations', ], 'migrations'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка