H
H
HeartOfProgrammer2016-02-20 20:34:18
Laravel
HeartOfProgrammer, 2016-02-20 20:34:18

Why does laravel say that the controller is not found?

I created the 'Main' controller, the controller has the 'index' function, I wrote in it:

public function index()
    {
        return view('index');
    }

I wrote in Routes:
Route::get('/', '[email protected]');
And laravel itself gives such an error
6b440bb3c06240e0ae4368ab81f96c21.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-02-20
@HeartOfProgrammer

Your Main appears to be inheriting from \App\Http\Controllers\Controller which doesn't exist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question