all(); $booking = BookingAction::run($action, $booking, $request); $data = new BookingResource($booking); return $this->response->message(trans("messages.success.{$action}", ['Module' => trans('offplan::booking.name')])) ->code(204) ->data(compact('data')) ->status('success') ->url(guard_url('offplan/booking/' . $booking->getRouteKey())) ->redirect(); } catch (Exception $e) { return $this->response->message($e->getMessage()) ->code(400) ->status('error') ->url(guard_url('offplan/booking/' . $booking->getRouteKey())) ->redirect(); } } public function notify(){ } }