Пример #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\CreateHora_Request $request)
 {
     $hora = Horas::create($request->all());
     if (Auth::user()->type == 'admin') {
         return redirect()->route('admin.configurar.index');
     }
     if (Auth::user()->type == 'secretaria') {
         return redirect()->route('secretaria.configurar.index');
     }
 }
Пример #2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\CreateHora_Request $request)
 {
     $hora = Horas::create($request->all());
     return redirect()->route('admin.configurar.index');
 }