Created
June 30, 2018 12:39
-
-
Save tilhom/52e36e485aec264c687e87244820d13b to your computer and use it in GitHub Desktop.
factory for Article (for: Using Laravel 5.5 Resources to create your own {JSON:API} formatted API)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$factory->define(App\Article::class, function (Faker $faker) { | |
return [ | |
'author_id' => $faker->numberBetween(1,100), | |
'title' => $faker->sentence() | |
]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment