migration

This commit is contained in:
2026-01-07 22:18:43 +00:00
parent 8d681da7a1
commit 66cddf3fb2
29 changed files with 2250 additions and 638 deletions

24
app/Models/Admin.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Sanctum\HasApiTokens;
class Admin extends Authenticatable
{
use HasApiTokens;
protected $guard = 'admin'; // Указываем guard для админов
protected $fillable = [
'name',
'email',
'password',
];
protected $hidden = [
'password',
'remember_token',
];
}