Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created March 8, 2018 00:26
Show Gist options
  • Save jsdecena/33a135aa0e2d0457ed2a68df44f114dd to your computer and use it in GitHub Desktop.
Save jsdecena/33a135aa0e2d0457ed2a68df44f114dd to your computer and use it in GitHub Desktop.
Carousel Model Factory File
<?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