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()

Get the error

A request to [] 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
Made a mistake, decided writing
protected $baseUrl = '';
protected $baseUrl = '';

Find more questions by tags Laravel