a route, but php doesn't recognize the class used as a paramater on my route.
I created a PostsController class via ``` php artisan --resource ```,
and I also added this line of code in my web.php file
Route::get('/post','PostsController@index');
I face this error:
Target class [PostsController] does not exist.
what's the issue?
Check if you've imported the PostsController in your web.php
i added this line to my web.php use App\Http\Controllers\PostsController; still does'nt work
Still same error?
Обсуждают сегодня