Answer the question
In order to leave comments, you need to log in
How to create layout folder hierarchy in laravel?
Hello! I just started to understand Laravel and it's not very clear to me how to organize the layout correctly... Where and how is it better to store templates? How to break them? Where to store CSS? What is the correct way to use a template engine to combine all parts of a page into one template?
Answer the question
In order to leave comments, you need to log in
Styles, scripts:
public/assets/sass/
public/assets/js/
public/css/
public/js/
public/img/
Template files:
resources/views/
Further, I think, you will understand)
There is a built-in generator, an artisan script.
It should be dealt with first of all, not even because it speeds up something there, but because it creates the very structure and many people use this standard structure, it is worth knowing it.
When you generate the application, everything will already be there, and a folder for templates, and even a couple of test templates.
It took me three trips to the metro, with an open dock on laravel, to figure everything out, so it's not all that difficult.
That is, you want to see this program in Java (surely Java, not JavaScript?), but you yourself cannot understand 3 lines of the source program code?
Here you don’t even need to know Pascal, it looks more like pseudocode.
What specifically caused the difficulty of translating this program into Java?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question