/**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(LocalRequest $request)
 {
     $almacen = Local::create($request->all());
     $almacen->type = 'almacen';
     $almacen->save();
     $auditoria = new Auditoria();
     $auditoria->content = 'Ha creado un nuevo Almacen: ID: ' . $almacen->id . ' - Nombre: ' . $almacen->nombre;
     $auditoria->user_id = \Auth::user()->id;
     $auditoria->save();
     //$auditoria ->  user() -> associate($user)
     Flash::success('Almacen creado exitosamente');
     return redirect()->route('admin.almacenes.index');
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(LocalRequest $request)
 {
     $taller = Local::create($request->all());
     $taller->type = 'taller';
     $taller->save();
     $auditoria = new Auditoria();
     $auditoria->content = 'Ha creado un nuevo Taller: ID: ' . $taller->id . ' - Nombre: ' . $taller->nombre;
     $auditoria->user_id = \Auth::user()->id;
     $auditoria->save();
     //$auditoria ->  user() -> associate($user)
     Flash::success('Taller creado exitosamente');
     return redirect()->route('admin.talleres.index');
     //dd(\Auth::user()->id);
 }