Level 67
@it13 You can actually do this with an artisan command...
php artisan session:table
php artisan migrate
Or
Run php artisan make:migration AddSessionsTable and edit the migration with...
Schema::create('sessions', function ($table) {
$table->string('id')->unique();
$table->unsignedInteger('user_id')->nullable();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->text('payload');
$table->integer('last_activity');
});
24 likes