I'm was change my XAMPP port to 8000 and I open my virtual host with http://laravel.test:8000/ I try to add this to my routes.php :
Route::get('/', function () {
return view('homepage');
});
Route::get('/', function () {
return view('about');
});
but when I'm try to open : http://laravel.test/about:8000/ or http://laravel.test/homepage:8000/ it's error. How can I open that page with the xampp port changed?
Define your routes properly
Route::get('/', function () {
return view('homepage');
});
Route::get('about', function () {
return view('about');
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.