Dev.php 627 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Module\Dev\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Module\Dev\Models\Dev
  6. *
  7. * field start
  8. * field end
  9. */
  10. class Dev extends Model
  11. {
  12. /**
  13. * 与模型关联的表名
  14. *
  15. * @var string
  16. */
  17. protected $table = 'dev';
  18. // attrlist start
  19. protected $fillable = [
  20. ];
  21. // attrlist end
  22. /**
  23. * 可批量赋值的属性
  24. *
  25. * @var array
  26. */
  27. protected $fillable = [
  28. 'name',
  29. 'description',
  30. 'status'
  31. ];
  32. /**
  33. * 模型的主键
  34. *
  35. * @var string
  36. */
  37. protected $primaryKey = 'id';
  38. }