mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-27 04:32:14 +00:00
29 lines
538 B
PHP
29 lines
538 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace Database\Factories\Actions;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
||
|
class TagFactory extends Factory
|
||
|
{
|
||
|
/**
|
||
|
* The name of the factory's corresponding model.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $model = \BookStack\Actions\Tag::class;
|
||
|
|
||
|
/**
|
||
|
* Define the model's default state.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function definition()
|
||
|
{
|
||
|
return [
|
||
|
'name' => $this->faker->city,
|
||
|
'value' => $this->faker->sentence(3),
|
||
|
];
|
||
|
}
|
||
|
}
|