/** * Store and check a newly created reservations in storage, * and send an email to administrators for information. * * @param ReservationRequest|Request $request * @return array */ public function store(ReservationRequest $request) { $reservation = new Reservation($request->all()); $reservation->is_valid = false; $reservation->save(); $dest = explode(',', env('MAIL_ADMIN')); $this->sendMail('emails.new', $reservation->toArray(), $dest); return compact('reservation'); }