I'm working with Laravel 8 to develop my project. And I made a controller called BackendController and add this index() method to call a blade:
public function index()
{
    return view('website.backend.dashboard.index');
}
And on web.php I add this route:
Route::get('/dashboard', 'BackendController@index');
But when I goto /dashboard, it says:
lluminate\Contracts\Container\BindingResolutionException Target class [BackendController] does not exist.
I don't know why it prints this, because the Controller already exists! So if you know how to solve it, please help me...
Thanks in advance.
 
     
     
    