123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace App\Providers;
- use Carbon\Carbon;
- use Illuminate\Support\Facades\App;
- use Illuminate\Support\ServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
-
- public function register()
- {
- }
-
- public function boot()
- {
- if (App::getLocale() == 'zh_CN') {
- Carbon::setLocale('zh');
- }
- $this->registerObservers();
- }
- protected function registerObservers(): void
- {
- }
- }
|