created_by) && $userId = get_current_user_id()) { $model->created_by = $userId; } }); } public function booking() { return $this->belongsTo(Booking::class, 'booking_id'); } }