|
|
|
@ -3,6 +3,7 @@ |
|
|
|
namespace App\Providers; |
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Session; |
|
|
|
use Illuminate\Support\Facades\URL; |
|
|
|
use Illuminate\Support\ServiceProvider; |
|
|
|
use Inertia\Inertia; |
|
|
|
|
|
|
|
@ -25,6 +26,9 @@ class AppServiceProvider extends ServiceProvider |
|
|
|
*/ |
|
|
|
public function boot() |
|
|
|
{ |
|
|
|
if (config('app.env') === 'production') { |
|
|
|
URL::forceScheme('https'); |
|
|
|
} |
|
|
|
Inertia::share('flash', function () { |
|
|
|
return [ |
|
|
|
'message' => Session::get('message'), |
|
|
|
|