loadTranslationsFrom(__DIR__.'/lang', 'laravel-filemanager'); $this->loadViewsFrom(__DIR__.'/views', 'laravel-filemanager'); $this->publishes([ __DIR__ . '/config/lfm.php' => base_path('config/lfm.php'), ], 'lfm_config'); $this->publishes([ __DIR__.'/../public' => public_path('vendor/laravel-filemanager'), ], 'lfm_public'); $this->publishes([ __DIR__.'/views' => base_path('resources/views/vendor/laravel-filemanager'), ], 'lfm_view'); $this->publishes([ __DIR__.'/Handlers/LfmConfigHandler.php' => base_path('app/Handlers/LfmConfigHandler.php'), ], 'lfm_handler'); } /** * Register the application services. * * @return void */ public function register() { $this->app->singleton('laravel-filemanager', function () { return true; }); } }