I always have this message,
Illuminate\Contracts\Container\BindingResolutionException
Target class [MessagesController] does not exist.
On some route and URL requests,
MessagesController however is not contained on my route web files, and in any of my controllers.
Can someone explain to me why the Controller class gives a warning?
Target class [MessagesController] does not exist.
Follow-up question, is there a way I can remove an unused controller by an artisan command?
Thank you!
Summary of the solution:
I checked on my route that I forgot to use the Class Controller which is MessageController
The quick fix for this one is by importing the Controller, in my routes directory web.php
use App\Https\Controller\MessagesController;