*/ use HasFactory; protected $fillable = [ 'user_id', 'label', 'unit', 'count', ]; protected function casts(): array { return [ 'count' => 'integer', ]; } /** * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }