todo mal
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AdminUser extends Model
|
||||
{
|
||||
protected $table = 'admin_users';
|
||||
protected $primaryKey = 'id';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'username',
|
||||
'password',
|
||||
'role',
|
||||
'id_club',
|
||||
'reset_token',
|
||||
'reset_expira',
|
||||
];
|
||||
|
||||
public function club()
|
||||
{
|
||||
return $this->belongsTo(Club::class, 'id_club', 'id_club');
|
||||
}
|
||||
|
||||
protected $hidden = [
|
||||
'password',
|
||||
'reset_token',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'role' => 'integer',
|
||||
'reset_expira' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user