Файл: gapps/app/Providers/ComposerServiceProvider.php
Строк: 31
<?php
namespace AppProviders;
/**
* AppProvidersComposerServiceProvider
*
* _View Composer, that handle common views objects that we set.
*
* @package GoogleApps
* @category CategoryController
* @author Anthony Pillos <dev.anthonypillos@gmail.com>
* @copyright Copyright (c) 2017
* @version v1
*/
use IlluminateSupportServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Register bindings in the container.
*
* @return void
*/
public function boot()
{
// common for all views
view()->composer(
'*', 'LibViewComposersCommonView'
);
view()->composer(
'backend.*', 'LibViewComposersBackend'
);
view()->composer(
'frontend.*', 'LibViewComposersFrontend'
);
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
}