irankhosravi
2 months ago

how to use a variable to all controllers in laravel

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