*/ protected $fillable = [ 'module_row_id', 'label', 'module_field_type', 'required', 'position', ]; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'required' => 'boolean', ]; /** * Get the module row associated with the module. */ public function row(): BelongsTo { return $this->belongsTo(ModuleRow::class, 'module_row_id'); } }