/** * Delete a resource from storage. * * @param @@requestClass@@ $request * @param @@modelName@@ $@@modelNameParam@@ * @param @@parentModelName@@ $@@parentModelNameParam@@ * @return \Illuminate\Http\Response * @throws \Exception */ public function destroy(@@requestClass@@ $request, @@parentModelName@@ $@@parentModelNameParam@@, @@modelName@@ $@@modelNameParam@@) { if ($@@modelNameParam@@->delete()) { session()->flash('app_message', '@@modelName@@ successfully deleted'); } else { session()->flash('app_error', 'Error occurred while deleting @@modelName@@'); } return redirect()->back(); }