preg_match(): Compilation failed: invalid range in character class at offset 20
Opened this issue · 1 comments
arhanjunaid commented
i am using laravel 5.7 and i am when ever i am refreshing the page i am getting the error
return preg_match($route->getCompiled()->getRegex(), rawurldecode($path));
preg_match(): Compilation failed: invalid range in character class at offset 20
this my ruote web.php file:
name('home'); Route::get('invoice', function(){ return view('invoice'); }); Route::get('{path}','HomeController@index')->where( 'path', '([A-z\d-/_.]+)?' );nahid18 commented
Remove the last line and copy paste the line below:
Route::get('{path}','HomeController@index')->where( 'path', '([A-z\d\-/_.]+)?' );