itGuild tables

This commit is contained in:
2024-07-12 13:46:44 +03:00
parent 91dc9194e0
commit 0d077fb641
6 changed files with 97 additions and 5 deletions

View File

@ -5,5 +5,15 @@ use Illuminate\Database\Eloquent\Model;
class User extends Model {
protected $table = 'user';
protected $fillable = ['username', 'email', 'password_hash', 'role'];
protected $dates = ['deleted at'];
protected array $dates = ['deleted at'];
public static function labels(): array
{
return [
'username' => 'Логин',
'email' => 'Email',
'created_at' => 'Создан',
'updated_at' => 'Обновлен'
];
}
}