fakerino/laravel-fakerino is a Laravel package for fake data generator laravel package.
It currently has 4 GitHub stars and 10.707 downloads on Packagist (latest version 0.0.2).
Install it with composer require fakerino/laravel-fakerino.
Discover more Laravel packages by fakerino
or browse all Laravel packages to compare alternatives.
Last updated
#Fakerino Laravel Package
The Fakerino Laravel provides integration of Fakerino into the Laravel framework.
More information in the official documentation.
Add the following dependencies to your projects composer.json file:
"require": {
"fakerino/laravel-fakerino": "0.0.*",
}
"scripts": {
"post-install-cmd": "vendor/fakerino/fakerino/build/ods vendor/fakerino/fakerino/data",
"post-update-cmd": "vendor/fakerino/fakerino/build/ods vendor/fakerino/fakerino/data"
}
In this way the data will be always updated automatically via composer.
$ vendor/fakerino/fakerino/build/ods vendor/fakerino/fakerino/dataTo initialize the bundle, you'll need to add it in your config/app.php.
'providers' => [
'Fakerino\Package\FakerinoProvider',
<?php namespace App\Http\Controllers;
use Fakerino\Fakerino;
class FakeController extends Controller
{
public function index()
{
return $this->fakerino->fake('surname');
}
}