Hujjat/laravStart

new issue

Closed this issue · 3 comments

  1. Error after deploy my vps server when reload or press F5 key

"preg_match(): Compilation failed: invalid range in character class at offset 20"
but "https://api.u2pay.in/home" no error

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

  1. You are running Vue in development mode.
    Make sure to turn on production mode when deploying for production. how to solve.

Hi there, Please update your web.php file with
Route::get('{path}',"HomeController@index")->where( 'path', '/([A-z\d-\/_.]+)?/' );

  1. Run npm run prod to compile your assets for production.

Thanks.

but not work

"preg_match(): Compilation failed: invalid range in character class at offset 21"

Hi,

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

If doesn't work, it's probably related to PHP version you're using. I have seen similar issue with PHP7.3