I'm using soft delete feature in laravel, it is ok when I load all data with Post::withTrashed()->get()
method. But when I want to get the detailed information of the data using this query Post::withTrashed()->find($post)->get()
, it throws me to 404 page. Please help.
I tried Post::onlyTrashed()->find($post)->get()
too, but still the same.
I checked the routes file by directly echoing a Hello world string on it and does work normally.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire