Skip to content

alexanderpostma/laravel-session-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

laravel-session-migrate

  1. Prepare tables

php artisan session:table

php artisan migrate

  1. Create Artisan Console command

In the App\Console\Commands directory, create a SessionMigrate.php file with the following content:

  1. Run the migration script

php artisan migrate:sessions

  1. Clear the Laravel config cache

php artisan config:cache

  1. Done.

About

Migrate sessions from a files to the database in Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages