S
S
supercoder6662020-10-03 15:26:20
open server
supercoder666, 2020-10-03 15:26:20

Why after installing laravel, the main page displays a list of files?

Hello! I have such a problem. The fact is that when I install via composer laravel (I use Open Server) on local hosting, then such a snag arises. When I go to the address mysite.com, this opens:
9WP22VYwXT4.jpg
And when I go to the address mysite.com/public, this opens:
DwwtrCK7oVY.jpg
And in the routes, the welcome page is displayed under these conditions:

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

What should I do to open welcome immediately on mysite.com?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Khlopov, 2020-10-03
@supercoder666

In Open Server, try to set the following settings, and then click the "Save" button
5f786fea3ad38897147786.png

I
Ilya, 2020-10-03
@New_Horizons

root document point to the public folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question