foo.php 575 B

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