How to Share Data to All Views in Laravel 5.6

preview_player
Показать описание
Learn to Share data to all views In Laravel. We will introduce to Laravel View Composer. The Laravel feature you must know about. This feature is very essential for everyone to know and use. Because it will save a lots of time and repetition
Рекомендации по теме
Комментарии
Автор

you only used Auth::user()... but what about another Database Table.. for example if i want to show data from Category Table to all views, please let me know, how can i do this...

smartest_developers
Автор

good video to explain laravel view composer it's so helpful for beginner as me thanks

bithub-Channel
Автор

My Friend, Thank you very much. i have gone through many videos . You are the Best . Clear Straight forward explanations. I wish you the best Up!!!

abusultanalmuttairi
Автор

Thanks alot, I was working with sidebars, again n again was repeating same variables, Thanks a ton!

raviwadhwani
Автор

better using view composer or facades when generate navbar for frontend?

kurnia
Автор

It worked for me, thank you so much! :D

martin
Автор

thanks for such an outstanding input :) it will be much helpful!!!

danishtahir
Автор

thank you so much sure for the information

rabatstadttv
Автор

It gives error if I logout and then goes to login page, Auth error bcz user is not logged in and passing variable to the view...and suggestions?

anil
Автор

Trying to get property of non-object did the same as you did but got this error any suggestions to solve this?

muhammadkhizzarmansoor
Автор

What's the difference between that and view share?

davidbasil
Автор

i see good explanations but you can get higher level of abstraction by push trough constructor :)

GamePlayByFaks