27 lines
623 B
PHP
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']);
|
|
}
|
|
}
|