Laravel how to test route, with the prefix variable?

My route.php has the form

Route::group( array('prefix'=> '{lang}'), function(){

 Route::get('/',function (){

 return view('frontend.index');
});
});


When you run the test
public function testBasicExample()
{
$this->visit('/en/')->see('Polski');
 }


Get the error

A request to [minishop.dev/en] failed. Received status code [404].


The correct URL in the browser everything is OK, but test fails...

What could be the error?
July 8th 19 at 15:54
1 answer
July 8th 19 at 15:56
Solution
Made a mistake, decided writing
protected $baseUrl = 'http://minishop.dev';
instead
protected $baseUrl = 'minishop.dev';

Find more questions by tags Laravel