/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     // $inventarios = inv::where('id_texto','=',$id)
     //                     ->paginate(10);
     $texto = textos::find($id);
     //return $textos;
     return view('texto.inventario.index', compact('texto'));
 }
 public function storeCliente2(prestamoCreateRequest $request)
 {
     $arreglo = ['cedula' => $request->cedula, 'textos' => textos::find($request->input('texto_select'))];
     return view('prestamo.selectTexto', compact('arreglo'));
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $texto = textos::find($id);
     return view('front.texto.show', compact('texto'));
 }
 public function generoUpdate($textoId, $generosId)
 {
     $aux = textos::find($textoId);
     $aux->id_genero = $generosId;
     $aux->save();
     Session::flash('message', 'Se cambio el genero del texto correctamente');
     return Redirect::to('/texto');
 }