Created
February 5, 2020 18:27
-
-
Save parzibyte/5d66efb39c28105ff1b43e5c2a74c699 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 \Illuminate\Http\Request $request | |
* @return \Illuminate\Http\Response | |
*/ | |
public function store(Request $request) | |
{ | |
$nivel = new Nivel($request->input()); | |
$nivel->saveOrFail(); | |
return redirect()->route("niveles.index")->with(["mensaje" => "Nivel creado", | |
]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment