N
N
Nik Gubin2016-08-16 16:05:21
Laravel
Nik Gubin, 2016-08-16 16:05:21

How do you organize your helpers in Laravel?

Good afternoon. From the question, obviously, nothing is clear, so I explain.
How do you make your life easier in your projects with things like the title of the page, a set of styles/scripts that need to be included in the view, any meta, and more? For example, Joomla has a setTitle method in the JDocument class, to which we send a line, and in the template and in other necessary places we receive and process it. There are also methods for adding links to scripts, styles, the body of scripts or styles, and more.
To summarize, how do you organize your Document Helpers in Laravel? Thanks to.
PS Don't hurt with a slipper, I'm learning Laravel for the second day :-)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2016-08-16
@Denormalization

https://laravel.com/docs/5.2/views#view-composers
There are a lot of ways to organize, and they are individual.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question