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