Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories\Articles;
use App\Models\Articles\WebsiteArticle;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class WebsiteArticleFactory extends Factory
{
protected $model = WebsiteArticle::class;
public function definition(): array
{
return [
'user_id' => User::factory(),
'title' => $this->faker->sentence(),
'slug' => $this->faker->slug(),
'full_story' => $this->faker->paragraphs(3, true),
'short_story' => $this->faker->sentence(),
'image' => $this->faker->imageUrl(),
];
}
}
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Database\Factories\Miscellaneous;
use App\Models\Miscellaneous\WebsiteSetting;
use Illuminate\Database\Eloquent\Factories\Factory;
class WebsiteSettingFactory extends Factory
{
protected $model = WebsiteSetting::class;
public function definition(): array
{
return [
'key' => $this->faker->unique()->word(),
'value' => $this->faker->word(),
'comment' => $this->faker->sentence(),
];
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use App\Models\RadioContest;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<RadioContest>
*/
class RadioContestFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
//
];
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use App\Models\RadioGiveaway;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<RadioGiveaway>
*/
class RadioGiveawayFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
//
];
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use App\Models\RadioListenerPoint;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<RadioListenerPoint>
*/
class RadioListenerPointFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
//
];
}
}
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace Database\Factories;
use App\Models\RadioRank;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<RadioRank>
*/
class RadioRankFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => fake()->word(),
'description' => fake()->sentence(),
'badge_code' => fake()->randomNumber(5),
'is_active' => true,
];
}
}
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace Database\Factories;
use App\Models\RadioShout;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<RadioShout>
*/
class RadioShoutFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'user_id' => User::factory(),
'message' => fake()->sentence(),
];
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use App\Models\RadioSongRequest;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<RadioSongRequest>
*/
class RadioSongRequestFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
//
];
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use App\Models\RadioSongVote;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<RadioSongVote>
*/
class RadioSongVoteFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
//
];
}
}
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Database\Factories\Shop;
use App\Models\Shop\WebsiteShopCategory;
use Illuminate\Database\Eloquent\Factories\Factory;
class WebsiteShopCategoryFactory extends Factory
{
protected $model = WebsiteShopCategory::class;
public function definition(): array
{
return [
'name' => $this->faker->word(),
'slug' => $this->faker->slug(),
'icon' => $this->faker->word(),
];
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
class UserFactory extends Factory
{
public function definition(): array
{
return [
'username' => 'NewRetro',
'mail' => 'NewRetro@example.com',
'password' => Hash::make('password'),
'account_created' => time(),
'last_login' => time(),
'look' => setting('start_look') ?: 'hr-100-61.hd-180-1.ch-210-66.lg-270-110.sh-305-62',
'credits' => setting('start_credits') ?: 1000,
'ip_register' => '127.0.0.1',
'ip_current' => '127.0.0.1',
];
}
}
+24
View File
@@ -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),
];
}
}