You’ll need to use the web middleware if you need session state, CSRF protection, and more.
Route::group(['middleware' => ['web']], function () {
// your routes here
});
More Related Contents:
- My Laravel 5.2.10 Sessions wont persist
- PHP session lost after redirect
- PHP Session Fixation / Hijacking
- What is the difference between Sessions and Cookies in PHP?
- How to set session timeout in Laravel?
- What is the difference between session_unset() and session_destroy() in PHP?
- How to keep a PHP session active even if the browser is closed?
- PHP authentication with multiple domains and subdomains
- laravel – Can’t get session in controller constructor
- Reopening a session in PHP
- how to unset cookie in PHP?
- Laravel – only a zero is saved to the database
- How to pass data to all views in Laravel 5?
- Array as session variable
- Truly destroying a PHP Session?
- Laravel: connect to databases dynamically
- Access denied for user ‘homestead’@’localhost’ (using password: YES)
- Laravel mail: pass string instead of view
- Laravel – Database, Table and Column Naming Conventions?
- how to pass value from one php page to another using session
- Call laravel controller via command line
- Do AJAX requests retain PHP Session info?
- Submit Multiple Forms With One Button
- Laravel – How to get current user in AppServiceProvider
- Laravel and view caching in development — can’t see changes right away
- Laravel Eager Loading – Load only specific columns
- ErrorException : implode(): Passing glue string after array is deprecated. Swap the parameters
- How should I serve an image with Laravel?
- How to get last insert id in Eloquent ORM laravel
- destroy session when broswer tab closed