Region.php 639 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Models;
  3. use DateTimeInterface;
  4. use Illuminate\Database\Eloquent\Model;
  5. class Region extends Model
  6. {
  7. /**
  8. * The table associated with the model.
  9. *
  10. * @var string
  11. */
  12. protected $table = 'regions';
  13. /**
  14. * The primary key associated with the table.
  15. *
  16. * @var string
  17. */
  18. protected $primaryKey = 'id';
  19. /**
  20. * Indicates if the model should be timestamped.
  21. *
  22. * @var bool
  23. */
  24. public $timestamps = true;
  25. /**
  26. * 不能被批量赋值的属性
  27. *
  28. * @var array
  29. */
  30. protected $guarded = ['id', 'updated_at', 'created_at'];
  31. }