| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Models;
- use Illuminate\Foundation\Auth\User as Authenticatable;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- use Laravel\Sanctum\HasApiTokens;
- class foo extends Authenticatable
- {
- use HasFactory,HasApiTokens;
- /**
- * The attributes that are mass assignable.
- *
- * @var array<int, string>
- */
- public $timestamps = false;
- protected $fillable = [
- 'name',
- 'email',
- 'fk_tests_id',
- ];
- /**
- * The attributes that should be cast.
- *
- * @var array<string, string>
- */
- protected $casts = [
- 'email_verified_at' => 'datetime',
- ];
- }
|