M
M
MrChen2016-04-11 01:43:22
HTML
MrChen, 2016-04-11 01:43:22

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

4 answer(s)
S
Sergey Goryachev, 2016-04-11
@MrChen

Styles, scripts:
public/assets/sass/
public/assets/js/
public/css/
public/js/
public/img/
Template files:
resources/views/
Further, I think, you will understand)

A
Alexander Litvinenko, 2016-04-11
@edli007

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.

D
D', 2015-03-11
@Denormalization

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?

M
Maxim Moseychuk, 2015-03-12
@fshp

No one will write a lab for you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question