refactor: single line delete queries

This commit is contained in:
Roardom
2023-06-20 05:03:47 +00:00
parent 0671e96c02
commit 738bc7f2d1
19 changed files with 32 additions and 95 deletions
@@ -78,8 +78,7 @@ class ResolutionController extends Controller
*/
public function destroy(int $id): \Illuminate\Http\RedirectResponse
{
$resolution = Resolution::findOrFail($id);
$resolution->delete();
Resolution::findOrFail($id)->delete();
return to_route('staff.resolutions.index')
->withSuccess('Resolution Successfully Deleted');