When I add a new route in web.php to Route::resource('doctor','DoctorController'); get the error is Target class [DoctorController] does not exist.
Asked
Active
Viewed 27 times
0
-
2`'DoctorController'` in quotes is the Syntax for Laravel 7.x and below. Please check [Target class controller does not exist - Laravel 8](https://stackoverflow.com/questions/63807930/target-class-controller-does-not-exist-laravel-8) for full details. – Tim Lewis May 13 '22 at 19:42
-
Does this answer your question? [Target class controller does not exist - Laravel 8](https://stackoverflow.com/questions/63807930/target-class-controller-does-not-exist-laravel-8) – miken32 May 13 '22 at 21:02
-
its all strings no matter what ... you can still use the old syntax you just need to use the FQCN instead of just the class' name ... check the duplicate for the answers – lagbox May 13 '22 at 22:16