概況欄の時間表記が狂っていたため、フォーマットの担当をDBからPHPに移した
This commit is contained in:
31
app/Providers/FormatterServiceProvider.php
Normal file
31
app/Providers/FormatterServiceProvider.php
Normal 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();
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user