Answer the question
In order to leave comments, you need to log in
Laravel how to test route prefixed with variable?
My route.php looks like
Route::group( array('prefix'=> '{lang}'), function(){
Route::get('/',function (){
return view('frontend.index');
});
});
public function testBasicExample()
{
$this->visit('/en/')->see('Polski');
}
A request to [minishop.dev/en] failed. Received status code [404].
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question