/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { $appointmentId = $this->get('appointment'); $businessId = $this->get('business'); $appointment = Appointment::find($appointmentId); $authorize = $appointment->issuer->id == auth()->user()->id || auth()->user()->isOwner($businessId); logger()->info("Authorize:{$authorize}"); return $authorize; }