CustomField.php 493 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Models;
  3. use EloquentFilter\Filterable;
  4. use Illuminate\Database\Eloquent\Factories\HasFactory;
  5. use Illuminate\Database\Eloquent\Model;
  6. class CustomField extends Model
  7. {
  8. use HasFactory, Filterable;
  9. public $timestamps = false;
  10. protected $fillable = [
  11. 'group', 'key', 'options', 'type', 'required', 'label','remark','inputs'
  12. ];
  13. protected $casts = [
  14. 'label' => 'array',
  15. 'options' => 'array',
  16. 'inputs'=>'array',
  17. ];
  18. }