海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
455 B

4 years ago
  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. class DiyFormField extends Model
  6. {
  7. use HasDateTimeFormatter;
  8. protected $casts = ['options' => 'json'];
  9. protected $guarded = ['id'];
  10. public function __construct(array $attributes = [])
  11. {
  12. parent::__construct($attributes);
  13. $this->timestamps = false;
  14. }
  15. public function form()
  16. {
  17. return $this->belongsTo(DiyForm::class);
  18. }
  19. }