*/ class LibraryFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ "name" => fake()->text(10), "acl" => LibraryACL::CUSTOM->value, "asset_id" => Asset::factory()->create(), "company_id" => Auth::user()->company_id, "type" => LibraryType::ASSET->value, ]; } }