What are the "partials" folders in Laravel?

0

In Laravel there are "partials" folders is this a convention? What should I keep in these folders?

PS: I'm starting the Laravel world!

    
asked by anonymous 21.03.2017 / 14:44

1 answer

3

Partials lives up to the term "partial", where it refers to "partial views".

Suppose you have a body, in this body you have: top header , banner , menu and content .

top header , banner and menu would be views partials , dividing the code and making it more readable.

Another example: You have a product listing, one table, that repeats itself in several parts of the system. Will you repeat code to format this table? No, you create a partial for it.

@each('products.list', $products)

Take a look at the documentation: link

    
21.03.2017 / 15:04