How to Share Data to All Views in Laravel 5.6

How to Share Data to All Views in Laravel 5.6

Code Inspire

6 лет назад

14,609 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Đạt Lưu Xuân
Đạt Lưu Xuân - 09.07.2021 16:54

woa, thank bro

Ответить
Kokoro
Kokoro - 24.03.2021 10:24

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

Ответить
Abu SULTAN Almuttairi
Abu SULTAN Almuttairi - 25.11.2020 20:05

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 .....Keep Up!!!

Ответить
Joseph Gbudu
Joseph Gbudu - 21.05.2020 12:19

Thank you. This is really helpful

Ответить
Víctor Saúl Quiroz
Víctor Saúl Quiroz - 18.05.2020 21:53

You are a real hero

Ответить
Martin Aguirre
Martin Aguirre - 14.04.2020 02:59

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

Ответить
med hamid
med hamid - 10.04.2020 23:09

is there any solution when w use composers with()
all flash stop working

Ответить
David Basil
David Basil - 25.12.2019 18:27

What's the difference between that and view share?

Ответить
7issou
7issou - 01.10.2019 20:27

thank you so much sure for the information

Ответить
Faiz
Faiz - 23.09.2019 02:51

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...

Ответить
Bayramgeldi Bayryyev
Bayramgeldi Bayryyev - 12.01.2019 19:32

Thank you very much

Ответить
Anil Gunjal
Anil Gunjal - 19.12.2018 17:16

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?

Ответить
Gameplay By Faks
Gameplay By Faks - 03.10.2018 14:06

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

Ответить
Chauhan C
Chauhan C - 27.07.2018 21:20

your voice and explain is super i follow your every video and i learn so much from you
thanks you


//if user is guest


@auth
{{ $user }}
@endauth

@guest
The user is Guest
@endguest

Ответить
Md Rabiul Islam
Md Rabiul Islam - 25.07.2018 20:43

thanks, awesome video

Ответить
Ravi Wadhwani
Ravi Wadhwani - 04.07.2018 16:47

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

Ответить
Bithub Tech English Channel
Bithub Tech English Channel - 18.06.2018 15:29

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

Ответить
Muhammad Khizzar Mansoor
Muhammad Khizzar Mansoor - 07.06.2018 09:50

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

Ответить
Danish Tahir
Danish Tahir - 31.03.2018 22:12

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

Ответить
Concepts Made Easy
Concepts Made Easy - 28.02.2018 12:46

nice video.

Ответить