fix back button

This commit is contained in:
arifal
2025-03-11 01:17:16 +07:00
parent 65600f1b4f
commit b8f7d7f655
5 changed files with 102 additions and 4 deletions

View File

@@ -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);
}
}
}