Dev.php 479 B

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