app/Http/Controllers/UsersController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(UserRequest $request)
    {
        $user = new User($request->all());
        $user->password = bcrypt($request->password);
        $user->save();
        Flash::success("Seha registrado <b>".$user->name."</b> de forma exitosa");
        return redirect()->route('users.index');
    }
public function store ( UserRequest $ request ) { $ user = new User ( $ request -> all ( ) ) ; $ user -> password = bcrypt ( $ request -> password ) ; $ user -> save ( ) ; Flash :: success ( " Seha registrado <b> " . $ user -> name . " </b> de forma exitosa " ) ; return redirect ( ) -> route ( 'users.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .