в настоящее время у меня проблема с моим проектом, я пытаюсь подключиться к своей домашней странице со страницы приветствия и выдает ошибку - NotFoundHttpException в строке RouteCollection.php 161 Ошибка - я не имею понятия проблемы, но любая помощь liitle я буду признателен, спасибо вам следующий мой код:
php artisan route: список
+--------+----------+-----------------------+---------------+-----------------------------------------------------+------------+
| | POST | / | welcome |App\Http\Controllers\pagesController@welcome | web |
| | GET|HEAD | / | welcome | Closure| web |
| | GET|HEAD | account | account |App\Http\Controllers\userController@getAccount | web |
| | POST | basketball | basketball |App\Http\Controllers\pagesController@basketball | web |
| | GET|HEAD | basketball | |App\Http\Controllers\PagesController@basketball | web |
| | POST | createpost | post.create |App\Http\Controllers\PostController@postCreatePost | web |
| | GET|HEAD | cricket | |App\Http\Controllers\PagesController@cricket | web |
| | POST | cricket | cricket |App\Http\Controllers\PagesController@cricket | web |
| | GET|HEAD | delete-post/{post_id} | post.delete |App\Http\Controllers\PostController@getDeletePost | web |
| | GET|HEAD | football | football |App\Http\Controllers\PagesController@football | web |
| | POST | football | football |App\Http\Controllers\pagesController@football | web |
| | GET|HEAD | formula1 | |App\Http\Controllers\PagesController@formula1 | web |
| | POST | formula1 | formula1 |App\Http\Controllers\PagesController@formula1 | web |
| | GET|HEAD | home | home |App\Http\Controllers\PagesController@home | web |
| | POST | home | home |App\Http\Controllers\pagesController@home | web |
| | GET|HEAD | like | like |App\Http\Controllers\PostController@postLikePost | web |
| | POST | like | like |App\Http\Controllers\PostController@postLikePost | web |
| | GET|HEAD | logout | logout |App\Http\Controllers\userController@getLogout | web |
| | GET|HEAD | premium | premium |App\Http\Controllers\PagesController@premium | web |
| | GET|HEAD | rugby | |App\Http\Controllers\PagesController@rugby | web |
| | POST | rugby | rugby |App\Http\Controllers\PagesController@rugby | web |
| | GET|HEAD | signin | |App\Http\Controllers\pagesController@signin | web |
| | POST | signin | signin |App\Http\Controllers\userController@postsignin | web |
| | POST | signup | signup |App\Http\Controllers\userController@postsignup | web |
| | GET|HEAD | signup | |App\Http\Controllers\pagesController@signup | web |
| | GET|HEAD | stream | stream |App\Http\Controllers\PostController@stream | web |
| | POST | stream | stream |App\Http\Controllers\PostController@stream | web |
| | POST | updateaccount | account.save |App\Http\Controllers\userController@postSaveAccount | web |
| | GET|HEAD | userimage/{filename} | account.image |App\Http\Controllers\userController@getuserimage | web |
+--------+----------+-----------------------+---------------+-----------------------------------------------------+------------+
routes.php
Route::group(['middlewareGroups' => ['web']], function ()
{
Route::get('/', function() {
return view('welcome');
}) -> name('welcome');
Route::get('/home', [
'uses' =>'PagesController@home',
'as' => 'home',
]);
route::post('/home',[
'uses' => 'pagesController@home',
'as' => 'home',
]);
}
welcome.blade.php `
<a href="{{Route('home')}}">
<button type="submit" class="btn btn-primary">CONTINUE </button>
</a>
pagescontroller.php
public function home(){
return view ('pages.home');
}