use sessions table

This commit is contained in:
Yisroel Baum 2026-07-31 09:54:05 +03:00
parent 529a352906
commit 8bc9ef728b
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ use Illuminate\Database\Eloquent\Model;
])] ])]
class SessionModel extends Model class SessionModel extends Model
{ {
protected $table = 'auth_sessions'; protected $table = 'sessions';
protected $primaryKey = 'token'; protected $primaryKey = 'token';

View file

@ -8,7 +8,7 @@ return new class extends Migration
{ {
public function up(): void public function up(): void
{ {
Schema::create('auth_sessions', function (Blueprint $table): void { Schema::create('sessions', function (Blueprint $table): void {
$table->string('token', 64)->primary(); $table->string('token', 64)->primary();
$table->foreignId('user_id') $table->foreignId('user_id')
->constrained('users') ->constrained('users')
@ -20,6 +20,6 @@ return new class extends Migration
public function down(): void public function down(): void
{ {
Schema::dropIfExists('auth_sessions'); Schema::dropIfExists('sessions');
} }
}; };