I installed Laravel through the composer, in the blog folder I get the URL, I go http://blog:8080/ - it shows just the structure.
And in order for the application to start, you need to add the public directory. How to make everything work by entering just the address http://blog:8080/ ?

Thank.

  • @TheOwl, If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Vitalina

1 answer 1

There are two options:

  1. In the server configuration (Apache, Ngnix, Xampp), register the virtual host with the path in the public directory. In the name of the server write the appropriate name and port

  2. Run using the command-line artisan command:

     php artisan serve --host=blog --port=8080