Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to change the default landing page after serve command

I am wondering if it is possible to change the default startup address after the command

php artisan serve

Because when I run it, I get the default url

Starting Laravel development server: http://127.0.0.1:8000

But my "first page" is when I type

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

 http://127.0.0.1:8000/index 

in the browser.

So is it possible to automatically give out http://127.0.0.1:8000/index after startup?

>Solution :

If you want to show your index.blade.php at first place then just replace in your routes/web.php

From this

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

TO this

Route::get('/', function () {
    return view('index');
});
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading