Short information about view composers
View composers are usually used to define some global variables that would be available in some partial Blade View, no matter where that View is called.
Typical examples are global things like page title, meta tags, some global stats numbers to be seen in the header/sidebar.
Read more in the official Laravel docs.
- resources/views/partials/components/currency-select.blade.php
- app/Http/ViewComposers/AssetComposer.php
- resources/views/templates/wrapper.blade.php
- app/Providers/ViewComposerServiceProvider.php
- config/app.php
- resources/views/clients/show.blade.php
- resources/views/partials/clientheader.blade.php
- resources/views/layout.blade.php
- app/Providers/ViewServiceProvider.php
- resources/views/front/components/lazy.blade.php
- resources/views/partials/language-switcher.blade.php
Additional resources on view composers:
-
Povilas Korop | www.youtube.com
Published on