I have a separate table for users which has all users included the roles like admin, user and referee. Now I would like to make another table to manage data related to volunteers data only everything looks fine but when try to delete specific volunteer data axios through 500
fe {message: 'Request failed with status code 500', name: 'AxiosError', code: 'ERR_BAD_RESPONSE', config: {…}, request: XMLHttpRequest, …}
not sure what cause of this error even in laravel.log says something like this:
[2024-07-24 22:05:35] development.ERROR: Class "AppHttpControllersFile" not found {"userId":11,"exception":"[object] (Error(code: 0): Class "App\Http\Controllers\File" not found at D:\projectName\app\Http\Controllers\VolunteersController.php:201)
[stacktrace]
#0 D:\projectName\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): App\Http\Controllers\VolunteersController->DeleteVolunteer('23')
#1 D:\projectName\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('DeleteVolunteer', Array)
#2 D:\projectName\vendor\laravel\framework\src\Illuminate\Routing\Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\VolunteersController), 'DeleteVolunteer')
...
This is the code i’m using currently
https://codeshare.io/k0bKq3