多🌹444收拾收拾计算机视觉手机手机手机手机4大尺寸惆怅长岑长
??????????????????????????С??????????????P??????????????????????????????????????????????????????^??????????
????j??????????
? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!SocialAccountsSeeder.php 0000644 00000021122 15266556536 0011340 0 ustar 00 createAllSocials();
}
private function createAllSocials(): void
{
$socials = [
[
'title' => 'Linkedin',
'subtitle' => 'Developments in the sector',
'key' => 'linkedin',
'link' => '#',
'icon' => '',
],
[
'title' => 'Telegram',
'subtitle' => 'Fast instant communication',
'key' => 'telegram',
'link' => '#',
'icon' => '',
],
[
'title' => 'Behance',
'subtitle' => 'A wide visibility',
'key' => 'behance',
'link' => '#',
'icon' => '',
],
[
'title' => 'X',
'subtitle' => 'Latest news and updates',
'key' => 'twitter',
'link' => '#',
'icon' => '',
],
[
'title' => 'Instagram',
'subtitle' => 'Share your photos',
'key' => 'instagram',
'link' => '#',
'icon' => '',
],
[
'title' => 'Facebook',
'subtitle' => 'The most popular social media',
'key' => 'facebook',
'link' => '#',
'icon' => '',
],
];
foreach ($socials as $social) {
$this->createSocial(...$social);
}
}
private function createSocial(string $title, string $subtitle, string $key, string $link, string $icon): void
{
SocialMediaAccounts::query()
->firstOrCreate([
'key' => $key,
], [
'title' => $title,
'subtitle' => $subtitle,
'key' => $key,
'link' => $link,
'icon' => $icon,
'is_active' => true,
]);
}
}
EngineSeeder.php 0000644 00000001303 15266556536 0007632 0 ustar 00 createEngines();
}
private function createEngines(): void
{
foreach (EngineEnum::cases() as $model) {
Engine::query()
->firstOrCreate(
[
'key' => $model->value,
],
[
'status' => StatusEnum::ENABLED,
]
);
}
}
}
RoleSeeder.php 0000644 00000001121 15266556536 0007324 0 ustar 00 createRole($role->value, 'web');
}
}
private function createRole(string $name, string $guardName): void
{
Role::query()
->firstOrCreate([
'name' => $name,
'guard_name' => $guardName,
]);
}
}
MenuSeeder.php 0000644 00000002635 15266556536 0007342 0 ustar 00 data();
foreach ($items as $item) {
Menu::query()
->firstOrCreate([
'key' => data_get($item, 'key'),
], [
'parent_id' => Menu::query()->where('key', data_get($item, 'parent_key'))->value('id'),
'route' => data_get($item, 'route'),
'route_slug' => data_get($item, 'route_slug'),
'label' => data_get($item, 'label'),
'icon' => data_get($item, 'icon'),
'svg' => data_get($item, 'svg'),
'order' => data_get($item, 'order'),
'is_active' => data_get($item, 'is_active'),
'params' => data_get($item, 'params'),
'type' => data_get($item, 'type'),
'extension' => data_get($item, 'extension'),
'letter_icon' => data_get($item, 'letter_icon'),
'letter_icon_bg' => data_get($item, 'letter_icon_bg'),
]);
}
app(MenuService::class)->regenerate();
}
}
VoiceIsolatorSeeder.php 0000644 00000003124 15266556536 0011212 0 ustar 00 createVoiceIsolatorRecord();
}
public function createVoiceIsolatorRecord(): void
{
OpenAIGenerator::query()->firstOrCreate([
'slug' => 'ai_voice_isolator',
], [
'title' => 'AI Voice Isolator',
'description' => 'Separate voices from background noise in audio recordings.',
'active' => 1,
'questions' => '[{"name":"file","type":"file","question":"Upload an Audio File (mp3, mp4, mpeg, mpga, m4a, wav, and webm)(Max: 500Mb)","select":""}]',
'image' => '',
'premium' => 0,
'type' => 'isolator',
'prompt' => '',
'custom_template' => '0',
'tone_of_voice' => '0',
'color' => '#DEFF81',
'filters' => 'voice',
]);
}
}
AdvertisSeeder.php 0000644 00000000710 15266556536 0010207 0 ustar 00 create([
'key' => $key,
]);
}
}
}
PermissionSeeder.php 0000644 00000001207 15266556536 0010560 0 ustar 00 createPermission($permission->value, 'web');
}
}
private function createPermission(string $name, string $guardName): void
{
Permission::query()
->firstOrCreate([
'name' => $name,
'guard_name' => $guardName,
]);
}
}
AdminPermissionSeeder.php 0000644 00000000677 15266556536 0011543 0 ustar 00 value);
$permissions = Permission::all();
$role->syncPermissions($permissions);
}
}
DashboardWidgetSeeder.php 0000644 00000001144 15266556536 0011463 0 ustar 00 $case) {
ModelsDashboardWidget::firstOrCreate([
'name' => $case->value,
], [
'enabled' => true,
'order' => $index,
]);
}
}
}
UserAiCreditFakeSeeder.php 0000644 00000000451 15266556536 0011542 0 ustar 00 first()?->update([
'entity_credits' => User::getFreshCredits(100),
]);
}
}
DatabaseSeeder.php 0000644 00000001041 15266556536 0010130 0 ustar 00 call([
IntroductionSeeder::class,
RoleSeeder::class,
PermissionSeeder::class,
AdminPermissionSeeder::class,
]);
$this->command->info('Currency table seeded!');
}
}
IntroductionSeeder.php 0000644 00000004053 15266556536 0011113 0 ustar 00 createAllIntroduction();
}
private function createAllIntroduction(): void
{
$introductions = [
[
'key' => 'initialize',
'intro' => "Welcome to MagicAI. Let's take a quick tour",
'order' => 1,
],
[
'key' => 'ai_writer',
'intro' => 'A great tool for using the Text Generator & AI Copywriting Assistant.',
'order' => 2,
],
[
'key' => 'ai_image',
'intro' => 'Create stunning images with just a few words.',
'order' => 3,
],
[
'key' => 'ai_pdf',
'intro' => 'Simply upload a PDF, find specific information. extract key insights or summarize the entire document.',
'order' => 4,
],
[
'key' => 'ai_code',
'intro' => 'Generate high quality code in seconds.',
'order' => 5,
],
[
'key' => 'select_plan',
'intro' => 'Choose the plan that suits you and start creating right away.',
'order' => 6,
],
[
'key' => 'affiliate_send',
'intro' => 'Invite your friends and start earning commissions.',
'order' => 7,
],
];
foreach ($introductions as $introduction) {
$this->createIntro(...$introduction);
}
}
private function createIntro(string $key, string $intro, int $order): void
{
Introduction::query()
->firstOrCreate([
'key' => $key,
], [
'key' => $key,
'intro' => $intro,
'order' => $order,
]);
}
}
EntitySeeder.php 0000644 00000001563 15266556536 0007711 0 ustar 00 createEntities();
}
private function createEntities(): void
{
foreach (EntityEnum::cases() as $model) {
Entity::query()
->firstOrCreate(
[
'key' => $model->value,
],
[
'engine' => $model->engine(),
'key' => $model->value,
'title' => $model->label(),
'status' => StatusEnum::ENABLED->value,
]
);
}
}
}
TokenSeeder.php 0000644 00000002155 15266556536 0007513 0 ustar 00 createAllTokens();
}
private function createAllTokens(): void
{
$models = [];
$entities = EntityEnum::cases();
foreach ($entities as $entity) {
$this->createToken(
$entity->engine(),
$entity->tokenType(),
$entity->value,
);
}
}
private function createToken(EngineEnum $engine, AITokenType $type, string $key): void
{
$engineModel = Entity::query()
->where('engine', $engine)
->where('key', $key)
->firstOrFail();
$engineModel->tokens()->firstOrCreate(
[
'entity_id' => $engineModel->id,
],
[
'type' => $type,
]
);
}
}