Target class does not exist error in Laravel 8

Ask New Question
  • Target class does not exist error in Laravel 8

    set the route as per the docs of Laravel 8, but I am getting the following error

    Illuminate\Contracts\Container\BindingResolutionException

    Target class [ExpenseController] does not exist.

    Reply
1 Replies Reply
  • Author
    Replies
  • |  

    Simply use the controller in your web.php file.

    use App\Http\Controllers\ExpenseController;

     

    Reply
Viewing 1 replies (of 1 total)
Reply To: Target class does not exist error in Laravel 8
Your information: