Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

preg_match(): Compilation failed: invalid range in character class at offset 20 #25

Open
arhanjunaid opened this issue Jan 7, 2020 · 1 comment

Comments

@arhanjunaid
Copy link

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
Copy link

nahid18 commented Jan 16, 2020

Remove the last line and copy paste the line below:

Route::get('{path}','HomeController@index')->where( 'path', '([A-z\d\-/_.]+)?' );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants