'date', 'amount' => 'decimal:2', 'is_reimbursable' => 'boolean', ]; /** * Get the trip that owns this expense. */ public function trip() { return $this->belongsTo(Trip::class); } /** * Get the user who created this expense. */ public function creator() { return $this->belongsTo(User::class, 'created_by'); } }