loadViewsFrom(__DIR__ . '/../../resources/views', 'android_app'); // Load translation $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'android_app'); // 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('eccomerce.android_app', function ($app) { return $this->app->make('Eccomerce\AndroidApp\AndroidApp'); }); // Bind ActionRecorder to repository $this->app->bind( 'Eccomerce\AndroidApp\Interfaces\ActionRecorderRepositoryInterface', \Eccomerce\AndroidApp\Repositories\Eloquent\ActionRecorderRepository::class ); $this->app->register(\Eccomerce\AndroidApp\Providers\AuthServiceProvider::class); $this->app->register(\Eccomerce\AndroidApp\Providers\RouteServiceProvider::class); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return ['eccomerce.android_app']; } /** * Publish resources. * * @return void */ private function publishResources() { // Publish configuration file $this->publishes([__DIR__ . '/../../config/config.php' => config_path('eccomerce/android_app.php')], 'config'); // Publish admin view $this->publishes([__DIR__ . '/../../resources/views' => base_path('resources/views/vendor/android_app')], 'view'); // Publish language files $this->publishes([__DIR__ . '/../../resources/lang' => base_path('resources/lang/vendor/android_app')], 'lang'); // Publish public files and assets. $this->publishes([__DIR__ . '/public/' => public_path('/')], 'public'); } }