概況欄の時間表記が狂っていたため、フォーマットの担当をDBからPHPに移した

This commit is contained in:
shibafu
2017-09-09 02:10:51 +09:00
parent be2cf3328a
commit 12d06dc88b
8 changed files with 82 additions and 18 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Providers;
use App\Utilities\Formatter;
use Illuminate\Support\ServiceProvider;
class FormatterServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->app->singleton(Formatter::class, function ($app) {
return new Formatter();
});
}
}