mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 08:50:22 -05:00
refactor: single line delete queries
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user