mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
38 lines
888 B
PHP
38 lines
888 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Release;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ReleaseFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Release::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'name' => $this->faker->name,
|
|
'searchname' => $this->faker->unique()->name(),
|
|
'fromname' => $this->faker->unique()->safeEmail(),
|
|
'postdate' => $this->faker->date(),
|
|
'adddate' => $this->faker->date(),
|
|
'guid' => $this->faker->sha1(),
|
|
'categories_id' => '2080',
|
|
'nzbstatus' => 1,
|
|
'passwordstatus' => 0,
|
|
'isrenamed' => 1,
|
|
];
|
|
}
|
|
}
|