*/ 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. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\ModuleRow, $this> */ public function row(): BelongsTo { return $this->belongsTo(ModuleRow::class, 'module_row_id'); } }