Skip to content

Instantly share code, notes, and snippets.

@demirhanali
Created August 6, 2020 13:09
Show Gist options
  • Save demirhanali/21623a8f7992fe5876325b24ea6ffc29 to your computer and use it in GitHub Desktop.
Save demirhanali/21623a8f7992fe5876325b24ea6ffc29 to your computer and use it in GitHub Desktop.
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Book;
use Faker\Generator as Faker;
$factory->define(Book::class, function (Faker $faker) {
return [
'name' => $faker->sentence,
'company' => $faker->company
];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment