Answer the question
In order to leave comments, you need to log in
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:
And when I go to the address mysite.com/public, this opens:
And in the routes, the welcome page is displayed under these conditions:
Route::get('/', function () {
return view('welcome');
});
Answer the question
In order to leave comments, you need to log in
In Open Server, try to set the following settings, and then click the "Save" button
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question