fix back button
This commit is contained in:
@@ -50,6 +50,12 @@ class PbgTaskGoogleSheetsController extends Controller
|
||||
*/
|
||||
public function destroy(string $id)
|
||||
{
|
||||
//
|
||||
try{
|
||||
$data = PbgTaskGoogleSheet::find($id);
|
||||
$data->delete();
|
||||
return response()->json(['message' => 'Data deleted successfully'], 200);
|
||||
}catch(\Exception $e){
|
||||
return response()->json(['message' => 'Failed to delete data'], 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user