¨4.0.1¨
This commit is contained in:
@@ -3,35 +3,31 @@
|
||||
namespace Modules\Product\Providers;
|
||||
|
||||
use Modules\Product\RecentlyViewed;
|
||||
use Modules\Support\Traits\AddsAsset;
|
||||
use Modules\Product\Admin\ProductTabs;
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Modules\Admin\Ui\Facades\TabManager;
|
||||
use Modules\Product\Http\ViewComposers\ProductEditPageComposer;
|
||||
use Modules\Product\Http\ViewComposers\ProductCreatePageComposer;
|
||||
|
||||
class ProductServiceProvider extends ServiceProvider
|
||||
{
|
||||
use AddsAsset;
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
public function boot(): void
|
||||
{
|
||||
TabManager::register('products', ProductTabs::class);
|
||||
|
||||
$this->addAdminAssets('admin.products.(create|edit)', [
|
||||
'admin.media.css', 'admin.media.js', 'admin.product.css', 'admin.product.js',
|
||||
]);
|
||||
View::composer('product::admin.products.create', ProductCreatePageComposer::class);
|
||||
View::composer('product::admin.products.edit', ProductEditPageComposer::class);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->singleton(RecentlyViewed::class, function ($app) {
|
||||
return new RecentlyViewed(
|
||||
|
||||
Reference in New Issue
Block a user