I can't seem to find any good and up to date resources on how to accomplish this.
I basically want to do this from within my package:
$factory->define(MyPackage\About\Models\About::class, function (Faker $faker) {
return [
"title" => $faker->text(5),
"image" => $faker->imageURL,
"content" => $faker->text,
"metadata_id" => null,
];
});
Can this be done?
Thanks,