blob: bd0a3aafc167759a040c28bc107acaa9e4358db4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Sanctum\HasApiTokens;
class Admin extends Authenticatable
{
use HasFactory, HasApiTokens;
protected $hidden = ['password'];
protected $fillable = [
'email',
'password',
'profile_photo' // Add profile photo field
];
public function logging(): HasMany
{
return $this->HasMany(Log::class);
}
}
|