Package Data | |
---|---|
Maintainer Username: | niklongstone |
Maintainer Contact: | nik.longstone@gmail.com (Nicola Pietroluongo) |
Package Create Date: | 2015-05-25 |
Package Last Update: | 2015-06-21 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:12:17 |
Package Statistics | |
---|---|
Total Downloads: | 10,408 |
Monthly Downloads: | 7 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
#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/data
To 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');
}
}