2018-07-12 07:12:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Webkul\Shop\Providers;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
2018-07-28 13:03:47 +00:00
|
|
|
use Illuminate\Support\Facades\Event;
|
|
|
|
|
use Illuminate\Routing\Router;
|
|
|
|
|
use Illuminate\Support\Facades\Blade;
|
2018-07-30 14:21:06 +00:00
|
|
|
use Webkul\Shop\Providers\ComposerServiceProvider;
|
2018-07-28 13:03:47 +00:00
|
|
|
|
2018-07-12 07:12:48 +00:00
|
|
|
class ShopServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Bootstrap services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function boot()
|
|
|
|
|
{
|
|
|
|
|
include __DIR__ . '/../Http/routes.php';
|
|
|
|
|
|
2018-08-09 06:00:51 +00:00
|
|
|
$this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'shop');
|
|
|
|
|
|
2018-07-12 07:12:48 +00:00
|
|
|
$this->publishes([
|
2018-08-17 05:48:21 +00:00
|
|
|
__DIR__ . '/../../publishable/assets' => public_path('themes/default/assets'),
|
2018-07-12 07:12:48 +00:00
|
|
|
], 'public');
|
|
|
|
|
|
|
|
|
|
$this->loadViewsFrom(__DIR__ . '/../Resources/views', 'shop');
|
|
|
|
|
|
2018-07-30 14:21:06 +00:00
|
|
|
$this->app->register(ComposerServiceProvider::class);
|
2018-07-12 07:12:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function register()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|