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 1825 #24

Open
waqarmalyk opened this issue Jan 3, 2020 · 1 comment

Comments

@waqarmalyk
Copy link

Hey, I'm working on laravel and I'm new I was following the tutor but I got error and couldn't get over it.
error

@nahid18
Copy link

nahid18 commented Jan 16, 2020

Go to your routes folder. then web.php
Remove previous code and copy-paste the code from below:

<?php
Route::get('/', function () {
    return view('welcome');
});

Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');
Route::get('invoice', function(){
    return view('invoice');
});

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