M
M
Maqsat Batyrqul2016-01-10 10:29:35
Laravel
Maqsat Batyrqul, 2016-01-10 10:29:35

How to pass global variable to all Laravel views?

How to pass global variable to all Laravel views? For example, the $sidebar variable could be passed to view/sidebar.blade.php and it could be included via @includ() in all views

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Perin, 2016-01-10
@Maqsat

Documentation - https://laravel.com/docs/5.2/views#sharing-data-wi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question