alexanderpostma / laravel-session-migrate

Migrate sessions from a files to the database in Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:PHP 100.0%