La classe cible [examen] n'existe pas.
php composer dump-autoload
php artisan migrate:refresh --seed
Lokesh003
php composer dump-autoload
php artisan migrate:refresh --seed
//accessing any function in the controller (this is web.php file)
use App\Http\Controllers\PostsController;
Route::get('/post', 'App\Http\Controllers\PostsController@index');
use App\Http\Controllers\UserController;
Route::get('/users', [UserController::class, 'index']);
// or
Route::get('/users', 'App\Http\Controllers\UserController@index');
Uncomment this line in app>>provider>>RouteServiceProvider.php file
// protected $namespace = 'App\\Http\\Controllers';
use App\Http\Controllers\RegistrationController;
Route::get('/', [RegistrationController::class, 'create']);
Route::get('/posts', [PostsController::class, 'index']);