Пример #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());
     return redirect()->route('admin.configurar.index');
 }
Пример #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $config = Horas::findOrFail($id);
     return view('admin.config.horas.edit', compact('config'));
 }