Created
February 5, 2020 18:49
-
-
Save parzibyte/ba189589170c6397b61f6a1d3d907af4 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 | |
/** | |
* Remove the specified resource from storage. | |
* | |
* @param \App\Nivel $nivel | |
* @return \Illuminate\Http\Response | |
*/ | |
public function destroy(Nivel $nivel) | |
{ | |
$nivel->delete(); | |
return redirect()->route("niveles.index")->with(["mensaje" => "Nivel eliminado", | |
]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment