laravel-learn-bbs/app/Providers/AppServiceProvider.php

32 lines
595 B
PHP
Raw Normal View History

2017-12-24 14:17:18 +00:00
<?php
namespace App\Providers;
2017-12-30 20:23:09 +00:00
use Carbon\Carbon;
2017-12-24 14:17:18 +00:00
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
2017-12-30 20:23:09 +00:00
Carbon::setLocale('zh');
2017-12-24 14:17:18 +00:00
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
2018-01-01 04:38:52 +00:00
if ($this->app->environment() !== 'production') {
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
}
2017-12-24 14:17:18 +00:00
}
}