Answer the question
In order to leave comments, you need to log in
How to create your application using laravel?
Good evening. At the start of creating a small application (hereinafter referred to as my application), I encountered the difficulty of organizing folders in laravel. I will be grateful if you help me understand the following questions:
1) I decided to move my application to a separate folder. Is it better to do it in the root folder of the site or in the vendor folder?
2) I want my application to have its own route, how to correctly build routing to it? My collective farm version: we create a route in the my application folder, write the necessary routes there, then we make a requester in routes/web.php, while the route accesses the App\Http\Controllers folder, which is why we have to rewrite the paths.
3) If I put the application in a separate folder, it turns out that all files related to it, including views, css, js, cache, etc., should be located in this folder?
ps I ask you not to throw in the second point, but to explain the correct approach.
Answer the question
In order to leave comments, you need to log in
If you ask the right question, then the answers themselves will appear on the horizon.
Not How to organize my application in laravel? and How to create your application using laravel? .
put it on and see how to write correctly
do not deal with gag
what you wrote is complete heresy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question