プロフィールの左カラムにある情報に関する処理をリファクタリング

This commit is contained in:
shibafu
2017-11-05 01:26:52 +09:00
parent 53f34c12cc
commit 6ed0938694
12 changed files with 157 additions and 127 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Providers;
use App\Http\ViewComposers\ProfileComposer;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
class ViewComposerServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
View::composer('components.profile', ProfileComposer::class);
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
//
}
}