
* #1 - project skeleton * #1 - composer fix * #1 - add app key to phpunit config * #1 - change default session driver * #1 - add EXTERNAL_WEBSERVER_PORT variable to .env.example
33 lines
590 B
PHP
33 lines
590 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Toby\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
use Laravel\Sanctum\HasApiTokens;
|
|
|
|
class User extends Authenticatable
|
|
{
|
|
use HasApiTokens;
|
|
use HasFactory;
|
|
use Notifiable;
|
|
|
|
protected $fillable = [
|
|
"name",
|
|
"email",
|
|
"password",
|
|
];
|
|
|
|
protected $hidden = [
|
|
"password",
|
|
"remember_token",
|
|
];
|
|
|
|
protected $casts = [
|
|
"email_verified_at" => "datetime",
|
|
];
|
|
}
|