MIF_E31222881/app/Providers/AppServiceProvider.php

31 lines
542 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Inertia\Inertia;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Inertia::share([
'flash' => [
'success' => session('success'),
'error' => session('error'),
],
]);
}
}