Migrations and factories
This commit is contained in:
15
database/factories/SourceFactory.php
Normal file
15
database/factories/SourceFactory.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/** @var \Illuminate\Database\Eloquent\Factory $factory */
|
||||
|
||||
use App\Source;
|
||||
use Faker\Generator as Faker;
|
||||
|
||||
$factory->define(Source::class, function (Faker $faker) {
|
||||
return [
|
||||
"name" => $faker->word,
|
||||
"slug" => $faker->slug,
|
||||
"logo" => "https://habaru.mv/assets/sources/Feshun.mv.png",
|
||||
"url" => $faker->url
|
||||
];
|
||||
});
|
Reference in New Issue
Block a user