feat: implement admin authentication

This commit is contained in:
2026-08-18 19:48:07 +03:30
parent e4310c0cc5
commit 8fa9a17ead
7 changed files with 140 additions and 1 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
/**
* Class Admin
*
* @property int $id
* @property string $first_name
* @property string $last_name
* @property string $email
* @property string $password
* @property string|null $remember_token
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @package App\Models
*/
class Admin extends Authenticatable
{
protected $table = 'admins';
protected $hidden = [
'password',
'remember_token'
];
protected $fillable = [
'first_name',
'last_name',
'email',
'password',
'remember_token'
];
}