pianello-api/app/Providers/ViewServiceProvider.php
Ale Gallo b91cf0cbde Committing laravel + api (part 1)
committing part of the laravel system with templating files and api implementation.
2023-11-10 15:54:41 +01:00

33 lines
782 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
class ViewServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
View::composer('*', 'App\View\Composers\MenuComposer');
View::composer('*', 'App\View\Composers\FakerComposer');
View::composer('*', 'App\View\Composers\DarkModeComposer');
View::composer('*', 'App\View\Composers\LoggedInUserComposer');
View::composer('*', 'App\View\Composers\ColorSchemeComposer');
}
}