PHP code example of hydreflab / laravel-jedi-faker
1. Go to this page and download the library: Download hydreflab/laravel-jedi-faker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hydreflab / laravel-jedi-faker example snippets
$factory->define(App\User::class, function (Faker $faker) {
return [
'name' => $faker->character,
'email' => $faker->unique()->safeEmail,
'planet' => $faker->planet,
'species' => $faker->species,
'vehicle' => $faker->vehicle,
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
'remember_token' => str_random(10),
];
});