app/Providers/AppServiceProvider.php
/**
     * Register any application services.
     *
     * @return void
     */
Register any application services.
@return void
Register any application services . @return void
public function register()
    {
        if ($this->app->environment() !== 'production') {
            $this->app->singleton(FakerGenerator::class, function () {
                return FakerFactory::create(config('app.locale', 'pt_BR'));
            });
        }
    }
public function register ( ) { if ( $ this -> app -> environment ( ) !== 'production' ) { $ this -> app -> singleton ( FakerGenerator :: class , function ( ) { return FakerFactory :: create ( config ( 'app.locale' , 'pt_BR' ) ) ; } ) ; } }
Register any application services.
Register any application services .