Z
Z
zozyla2019-07-15 20:11:53
Laravel
zozyla, 2019-07-15 20:11:53

How to pass variable to index file?

I have a website header in my index file, how can I pass variables there? The difficulty arises from the fact that I understand how to pass variables to layouts files, but here I can’t call anything besides the global Auth::user()->nick, because the variables are passed by url, hence the method to write for this useless, because it will have to be called on each address

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
adam_carraway, 2019-07-15
@zozyla

Maybe it?
How to pass a variable to layouts?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question