* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ namespace Database\Factories; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use App\Models\Rss; /** @extends Factory */ class RssFactory extends Factory { /** * The name of the factory's corresponding model. */ protected $model = Rss::class; /** * Define the model's default state. */ public function definition(): array { return [ 'position' => $this->faker->randomNumber(), 'name' => $this->faker->name(), 'user_id' => User::factory(), 'is_private' => $this->faker->boolean(), 'is_torrent' => $this->faker->boolean(), 'json_torrent' => $this->faker->word(), 'staff_id' => User::factory(), ]; } }