Skip to content

Commit

Permalink
Laravel usage on readme removed (#3)
Browse files Browse the repository at this point in the history
* laravel-usage-removed
  • Loading branch information
pablorsk authored Sep 13, 2018
1 parent 8b6b6fe commit a7b2917
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Add the CompanyNameGenerator™ library to your `composer.json` file:

## Usage

### No framework

Use the new `ArgentinaDataGenerator\CuitFakerProvider` class in combination with [Faker](https://github.com/fzaninotto/Faker) to produce CUIT numbers.

<?php
Expand All @@ -29,29 +27,6 @@ This snippet generates 5 awesome CUIT/CUIL valid numbers. Here is an example out
20-12145175-2
33-37145386-0

### Laravel

php artisan make:provider FakerServiceProvider

And modify app/Providers/FakerServiceProvider.php

<?php
namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class FakerServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->singleton('Faker', function($app) {
$faker = \Faker\Factory::create();
$faker->addProvider(\ArgentinaDataGenerator\CuitFakerProvider::class);
return $faker;
});
}
}

## Generators

### \ArgentinaDataGenerator\CuitFakerProvider
Expand Down

0 comments on commit a7b2917

Please sign in to comment.