loadViewsFrom(__DIR__ . '/../../resources/views', 'softskills'); // Load translation $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'softskills'); // Load migrations $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); // Call pblish redources function $this->publishResources(); } /** * Register the service provider. * * @return void */ public function register() { // Bind facade $this->app->bind('superrobota.softskills', function ($app) { return $this->app->make('Superrobota\Softskills\Softskills'); }); // Bind SoftSkills to repository $this->app->bind( 'Superrobota\Softskills\Interfaces\SoftSkillsRepositoryInterface', \Superrobota\Softskills\Repositories\Eloquent\SoftSkillsRepository::class ); $this->app->register(\Superrobota\Softskills\Providers\AuthServiceProvider::class); $this->app->register(\Superrobota\Softskills\Providers\RouteServiceProvider::class); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return ['superrobota.softskills']; } /** * Publish resources. * * @return void */ private function publishResources() { // Publish configuration file $this->publishes([__DIR__ . '/../../config/config.php' => config_path('superrobota/softskills.php')], 'config'); // Publish admin view $this->publishes([__DIR__ . '/../../resources/views' => base_path('resources/views/vendor/softskills')], 'view'); // Publish language files $this->publishes([__DIR__ . '/../../resources/lang' => base_path('resources/lang/vendor/softskills')], 'lang'); // Publish public files and assets. $this->publishes([__DIR__ . '/public/' => public_path('/')], 'public'); } }