for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Devfaysal\LaravelAdmin\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;
class Admin extends Authenticatable
{
use HasFactory, HasRoles, SoftDeletes, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'phone', 'password',
];
* The attributes that should be hidden for arrays.
protected $hidden = [
'password', 'remember_token',
* The attributes that should be cast to native types.
protected $casts = [
'email_verified_at' => 'datetime',
'last_login_at' => 'datetime'
* Create a new factory instance for the model.
* @return \Illuminate\Database\Eloquent\Factories\Factory
protected static function newFactory()
return config('laravel-admin.factory')::new();
}