Created
March 8, 2018 00:26
-
-
Save jsdecena/33a135aa0e2d0457ed2a68df44f114dd to your computer and use it in GitHub Desktop.
Carousel Model Factory File
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
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Model Factories | |
|-------------------------------------------------------------------------- | |
| | |
| Here you may define all of your model factories. Model factories give | |
| you a convenient way to create models for testing and seeding your | |
| database. Just tell the factory how a default model should look. | |
| | |
*/ | |
use App\Shop\Carousels\Carousel; | |
/** @var \Illuminate\Database\Eloquent\Factory $factory */ | |
$factory->define(Carousel::class, function (Faker\Generator $faker) { | |
return [ | |
'title' => $faker->word, | |
'link' => $faker->url, | |
'src' => $faker->url, | |
]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment