irankhosravi
10 months ago
112
2
Laravel

how to use a variable to all controllers in laravel

Posted 10 months ago by irankhosravi

I defined $block to all views and controller. I want to define $block for all views. How to I do?

footer.blade.php

{!! $block[0]->body !!}

Please sign in or create an account to participate in this conversation.