FleetCart/Modules/Report/Providers/ReportServiceProvider.php
2023-06-11 13:14:03 +01:00

27 lines
623 B
PHP

<?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']);
}
}