Try running php artisan cache:clear
Laravel session not persisted?
Hello!
I'm having a small problem since this morning.
In the web.php file, I defined the following routes:
Route::get("dashboard", "App\Http\Controllers\Pages\DashboardController@show");
Route::post("flights/import", "App\Http\Controllers\FlightController@import");
The FlightController import method looks like this:
public function import(Request $request)
{
return redirect("dashboard")->with("success", "import-starting");
}
And the DashboardController show method looks like this:
public function show()
{
dd(session()->get("success"));
}
The flashed success message does not appear to be available on the DashboardController. Why?
It's weird because I could swear it worked up until this morning. I make some changes to the code but when back to the code pushed yesterday on Git, so it shouldn't have any impact any more. I am running the Laravel app using a custom docker-compose file, and I believe the persistence of the session got broken for some reason right after after I rebuilt the containers this morning.
Did this ever happened to anyone else? Thank you!
EDIT: I also already tried define the session storage as file and database without any change.
Seems that my issue is actually coming from a bug which was introduced in version 3.13.0 of the laravel debugbar. I juste submitted an issue on the package's Github respository.
Please or to participate in this conversation.