Initial commit
This commit is contained in:
commit
9d73f82529
5575 files changed
+281989
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Shop\WebsiteShopArticle;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class WebsiteShopArticleFactory extends Factory
|
||||
{
|
||||
protected $model = WebsiteShopArticle::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->words(2, true),
|
||||
'info' => $this->faker->sentence(),
|
||||
'icon_url' => 'default.png',
|
||||
'color' => '#' . $this->faker->hexColor(),
|
||||
'costs' => $this->faker->numberBetween(100, 5000),
|
||||
'furniture' => json_encode(['i1' => 1]),
|
||||
'position' => $this->faker->numberBetween(1, 100),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user