Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 5, 2020 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/5d66efb39c28105ff1b43e5c2a74c699 to your computer and use it in GitHub Desktop.
Save parzibyte/5d66efb39c28105ff1b43e5c2a74c699 to your computer and use it in GitHub Desktop.
<?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