In Laravel there are "partials" folders is this a convention? What should I keep in these folders?
PS: I'm starting the Laravel world!
In Laravel there are "partials" folders is this a convention? What should I keep in these folders?
PS: I'm starting the Laravel world!
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