ComposerServiceProvider.php
596 Bytes
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use View;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
// View::composer('pages.profile', 'App\Http\ViewComposers\ProfileComposer');
View::composer(['pages.profile', 'pages.settings'], 'App\Http\ViewComposers\ProfileComposer');
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
//
}
}