Exemplo n.º 1
0
 /**
  * @Post("/")
  * @Middleware("admin")
  */
 public function post(SettingsRequest $request)
 {
     Settings::setCateringEmail($request->catering_email);
     return Settings::getAllSettings();
 }
Exemplo n.º 2
0
 /**
  * @Get("/send-catering-email")
  * @Middleware("admin")
  * 
  * Sends the catering email to catering's email
  * address from the settings
  * 
  */
 public function sendCateringEmail()
 {
     $week = \Input::get('week');
     $cateringEmail = Settings::getCateringEmail();
     \Event::fire(new AdminSentCateringEmail($week, $cateringEmail));
 }