FleetCart/Modules/Report/Providers/ReportServiceProvider.php

27 lines
623 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?php
namespace Modules\Report\Providers;
use Illuminate\Support\Facades\View;
use Modules\Support\Traits\AddsAsset;
use Illuminate\Support\ServiceProvider;
class ReportServiceProvider extends ServiceProvider
{
use AddsAsset;
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
View::composer('report::admin.reports.*', function ($view) {
$view->with('request', $this->app['request']);
});
$this->addAdminAssets('admin.reports.index', ['admin.report.css', 'admin.report.js']);
}
}