简体   繁体   中英

Error in View Route Laravel with Virtual Host XAMPP

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');
});

http://laravel.test:8000/

Route::get('about', function () {
  return view('about');
});

http://laravel.test:8000/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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM