foo.php 688 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Foundation\Auth\User as Authenticatable;
  4. use Illuminate\Database\Eloquent\Factories\HasFactory;
  5. use Illuminate\Database\Eloquent\Model;
  6. use Laravel\Sanctum\HasApiTokens;
  7. class foo extends Authenticatable
  8. {
  9. use HasFactory,HasApiTokens;
  10. /**
  11. * The attributes that are mass assignable.
  12. *
  13. * @var array<int, string>
  14. */
  15. public $timestamps = false;
  16. protected $fillable = [
  17. 'name',
  18. 'email',
  19. 'fk_tests_id',
  20. ];
  21. /**
  22. * The attributes that should be cast.
  23. *
  24. * @var array<string, string>
  25. */
  26. protected $casts = [
  27. 'email_verified_at' => 'datetime',
  28. ];
  29. }