Init(Core): add project to git and add seeders and factory
This commit is contained in:
19
database/factories/PageFactory.php
Normal file
19
database/factories/PageFactory.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Page;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class PageFactory extends Factory
|
||||
{
|
||||
protected $model = Page::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_token' => fake()->uuid(),
|
||||
'url' => fake()->url(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user