您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ExampleModel.php 554B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Tests\Support\Models;
  3. use CodeIgniter\Model;
  4. class ExampleModel extends Model
  5. {
  6. protected $table = 'factories';
  7. protected $primaryKey = 'id';
  8. protected $returnType = 'object';
  9. protected $useSoftDeletes = false;
  10. protected $allowedFields = [
  11. 'name',
  12. 'uid',
  13. 'class',
  14. 'icon',
  15. 'summary',
  16. ];
  17. protected $useTimestamps = true;
  18. protected $validationRules = [];
  19. protected $validationMessages = [];
  20. protected $skipValidation = false;
  21. }