2017-11-05 01:26:52 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2019-02-07 00:52:03 +09:00
|
|
|
use App\Http\ViewComposers\ProfileStatsComposer;
|
2017-11-05 01:26:52 +09:00
|
|
|
use Illuminate\Support\Facades\View;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class ViewComposerServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Bootstrap the application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2019-02-07 00:52:03 +09:00
|
|
|
View::composer('components.profile-stats', ProfileStatsComposer::class);
|
2017-11-05 01:26:52 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|