You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
766 B

<?php
namespace Database\Factories\Documents;
use App\Documents\ModelDocument;
use Illuminate\Database\Eloquent\Factories\Factory;
class ModelDocumentFactory extends Factory
{
protected $model = ModelDocument::class;
public function definition()
{
return [
'_id' => app('nextId'),
'name' => fake()->name,
'labels' => fake()->name,
'publishable' => true,
'group_id' => 1,
'index_policy' => 1,
'store_policy' => 1,
'get_policy' => 1,
'update_policy' => 1,
'delete_policy' => 1,
'restore_policy' => 1,
'trash_policy' => 1,
'fields' => [],
'relations' => [],
];
}
}