Created
September 30, 2015 14:38
-
-
Save vinicius73/f3dfc6812ceb0cd59f06 to your computer and use it in GitHub Desktop.
Faker pt_BR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Faker\Generator as FakerGenerator; | |
use Faker\Factory as FakerFactory; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() | |
{ | |
// | |
} | |
public function register() | |
{ | |
$this->app->singleton(FakerGenerator::class, function () { | |
return FakerFactory::create('pt_BR'); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment