1, "login" => "vasya"], ["id" => 2, "login" => "petya"], ["id" => 3, "login" => "kolya"], ["id" => 4, "login" => "nasimi"], ]; //return $data; return view('welcome', ['aaa' => 'bbbb' ,'userList' => $data]); }); Route::get('/about', function () { return ; }); Route::get('/tag/{text}', function (String $text) { $tag = \App\Tag::where('tag', $text)->first(); return $tag->posts; }); Route::get('/multiply_table/{width}/{height}', function ($width, $height) { $arr = []; for ($y=1;$y<=$height;$y++){ $arr[] = []; for ($x=1;$x<=$width;$x++){ $arr[$y -1][$x -1] = $x * $y; } } return view('multiply_table', ["table" => $arr]); })->where(['width' =>'[0-9]+', 'height' =>'\d+'] ) ->name('multiply'); Route::resource('/cntrl',"SomeController"); Route::resource('/comment',"CommentController");