Probably the most typical case of setting global variables are meta tags of the pages, and there’s one way to do it conveniently, outside of Controllers. Introducing View Composers, with an example.
Official docs: https://laravel.com/docs/7.x/views#view-composers
Subscribe : https://www.youtube.com/channel/UCTuplgOBi6tJIlesIboymGA
#laravel