I trying to learn Laravel but I have a problem that I don't understand. I get an error message when I want to run the controller.
I enter 3 lines of command on CMD
php artisan make:controller WelcomeController
php artisan make:controller AboutController
php artisan serve
Then, I establish the link between the controller and the route.
Route::get('about', 'AboutController@index');
And in the file AboutController.php I have
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AboutController extends Controller
{
public function index()
{
return view('about');
}
}
Normally it should work ? I looked a tuto on youtube https://www.youtube.com/watch?v=QASe8bXMMFA&t=56s
I have as error message => "include(C:\wamp64\www\testprojet\vendor\composer/../../app/Http/Controllers/Controller.php): failed to open stream: No such file or directory"
Do you have an idea please ?