Backend Discussion

Laravel Compose

It is a method to insert code snippets to Laravel blade template.
In Laravel compose we pass some variables to Laravel blade template and we receive them and compose html in blade template.
For example, we can compose nav menu using it. In most sites, nav menu looks different between logged in use and logged out user.
We can pass different values from compose to blade template conditionally according to the logged in state.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *