chore: Update package.json scripts for backend and frontend

This commit is contained in:
Jonas Pfalzgraf 2024-08-25 18:07:54 +02:00
parent d83803394b
commit c17594ec0b
59 changed files with 1218 additions and 2504 deletions

View file

@ -6,11 +6,10 @@ namespace App\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, HasFactory, Notifiable;
use HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
@ -34,12 +33,15 @@ class User extends Authenticatable
];
/**
* The attributes that should be cast.
* Get the attributes that should be cast.
*
* @var array<string, string>
* @return array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}