-
-
Save parzibyte/95edb274f140516c0a61c92c275aa9dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Store a newly created resource in storage. | |
* | |
* @param \App\Http\Requests\StoreUserRequest $request | |
* @return \Illuminate\Http\Response | |
*/ | |
public function store(StoreUserRequest $request) | |
{ | |
$user = new User($request->input()); | |
$user->password = Hash::make($request->input("password")); | |
$user->saveOrFail(); | |
return redirect()->back()->with("mensaje", "Usuario registrado correctamente"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment