aliasMiddleware('customer', RedirectIfNotCustomer::class); $this->loadMigrationsFrom(__DIR__ . '/../Database/migrations'); $this->loadViewsFrom(__DIR__ . '/../Resources/views', 'customer'); $this->composeView(); $this->app->register(EventServiceProvider::class); } /** * Register services. * * @return void */ public function register() { // $this->app->bind('datagrid', 'Webkul\Ui\DataGrid\DataGrid'); } protected function composeView() { view()->composer(['shop::customers.account.partials.sidemenu'], function ($view) { $menu = current(Event::fire('customer.menu.create')); $view->with('menu', $menu); }); } }