*/ protected $fillable = [ 'customer_id', 'height', 'weight', 'shoulder', 'chest', 'waist', 'hip', 'sleeve', 'neck', 'notes' ]; protected $casts = [ 'height' => 'decimal:2', 'weight' => 'decimal:2', 'shoulder' => 'decimal:2', 'chest' => 'decimal:2', 'waist' => 'decimal:2', 'hip' => 'decimal:2', 'sleeve' => 'decimal:2', 'neck' => 'decimal:2' ]; /** * Get the customer that owns the measurement. */ public function customer(): BelongsTo { return $this->belongsTo(User::class, 'customer_id'); } }