Change some first Eloquent methods to firstOrFail
This commit is contained in:
parent
e3fff4b9a8
commit
64f541d30d
4 changed files with 6 additions and 5 deletions
|
@ -35,7 +35,7 @@ class NotesController extends Controller
|
|||
*/
|
||||
public function show($urlId)
|
||||
{
|
||||
$note = Note::nb60($urlId)->with('webmentions')->first();
|
||||
$note = Note::nb60($urlId)->with('webmentions')->firstOrFail();
|
||||
|
||||
return view('notes.show', compact('note'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue