Hujjat / laravStart

Starter AdminLTE3 with Laravel 5.7 and Vuejs 2+
https://www.youtube.com/playlist?list=PLB4AdipoHpxaHDLIaMdtro1eXnQtl_UvE
380 stars 266 forks source link

preg_match(): Compilation failed: invalid range in character class at offset 1825 #24

Open waqarmalyk opened 4 years ago

waqarmalyk commented 4 years ago

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 commented 4 years ago

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\-/_.]+)?' );