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;
|
|
|
|
|
|
|
|
|
|
// use Webkul\Shop\Providers\EventServiceProvider;
|
2018-07-12 07:12:48 +00:00
|
|
|
|
|
|
|
|
class ShopServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Bootstrap services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function boot()
|
|
|
|
|
{
|
|
|
|
|
include __DIR__ . '/../Http/routes.php';
|
|
|
|
|
|
|
|
|
|
$this->publishes([
|
|
|
|
|
__DIR__ . '/../../publishable/assets' => public_path('vendor/webkul/shop/assets'),
|
|
|
|
|
], 'public');
|
|
|
|
|
|
|
|
|
|
$this->loadViewsFrom(__DIR__ . '/../Resources/views', 'shop');
|
|
|
|
|
|
2018-07-28 13:03:47 +00:00
|
|
|
// $this->composeView();
|
|
|
|
|
|
|
|
|
|
Blade::directive('continue', function () {
|
|
|
|
|
return "<?php continue; ?>";
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// $this->app->register(EventServiceProvider::class);
|
2018-07-12 07:12:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function register()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|