You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
542 B
31 lines
542 B
<?php |
|
|
|
namespace App\Models; |
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
|
use Illuminate\Foundation\Auth\User as Authenticatable; |
|
use Laravel\Passport\HasApiTokens; |
|
|
|
class User extends Authenticatable |
|
{ |
|
use HasApiTokens; |
|
use HasFactory; |
|
|
|
protected $fillable = [ |
|
'name', |
|
'email', |
|
'password', |
|
]; |
|
|
|
protected $hidden = [ |
|
'password', |
|
'remember_token', |
|
]; |
|
|
|
protected function casts(): array |
|
{ |
|
return [ |
|
'password' => 'hashed', |
|
]; |
|
} |
|
}
|
|
|