2020-02-24 01:23:19 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2020-03-29 01:03:52 +08:00
|
|
|
use App\Http\Composers\PageLinksComposer;
|
2020-02-24 01:23:19 +08:00
|
|
|
use App\Http\Composers\VersionComposer;
|
|
|
|
use Illuminate\Support\Facades\View;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
2020-03-29 01:03:52 +08:00
|
|
|
class ViewComposerServiceProvider extends ServiceProvider
|
2020-02-24 01:23:19 +08:00
|
|
|
{
|
|
|
|
public function boot()
|
|
|
|
{
|
2020-03-29 01:03:52 +08:00
|
|
|
View::composer('*', PageLinksComposer::class);
|
2020-02-24 01:23:19 +08:00
|
|
|
View::composer('admin.sidebar', VersionComposer::class);
|
|
|
|
}
|
|
|
|
}
|