29 lines
566 B
PHP
29 lines
566 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Providers;
|
||
|
|
|
||
|
|
use App\Models\Page;
|
||
|
|
use Illuminate\Support\Facades\View;
|
||
|
|
use Illuminate\Support\ServiceProvider;
|
||
|
|
|
||
|
|
class AppServiceProvider extends ServiceProvider
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Register any application services.
|
||
|
|
*/
|
||
|
|
public function register(): void
|
||
|
|
{
|
||
|
|
//
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Bootstrap any application services.
|
||
|
|
*/
|
||
|
|
public function boot(): void
|
||
|
|
{
|
||
|
|
View::composer('components.layouts.app', function ($view) {
|
||
|
|
$view->with('footerPages', Page::published()->inFooter()->get());
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|