多🌹444收拾收拾计算机视觉手机手机手机手机4大尺寸惆怅长岑长 ??????????????????????????С??????????????P??????????????????????????????????????????????????????^?????????? ????j?????????? ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!SocialAccountsSeeder.php000064400000021122152665565360011340 0ustar00createAllSocials(); } 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.php000064400000001303152665565360007632 0ustar00createEngines(); } private function createEngines(): void { foreach (EngineEnum::cases() as $model) { Engine::query() ->firstOrCreate( [ 'key' => $model->value, ], [ 'status' => StatusEnum::ENABLED, ] ); } } } RoleSeeder.php000064400000001121152665565360007324 0ustar00createRole($role->value, 'web'); } } private function createRole(string $name, string $guardName): void { Role::query() ->firstOrCreate([ 'name' => $name, 'guard_name' => $guardName, ]); } } MenuSeeder.php000064400000002635152665565360007342 0ustar00data(); 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.php000064400000003124152665565360011212 0ustar00createVoiceIsolatorRecord(); } 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.php000064400000000710152665565360010207 0ustar00create([ 'key' => $key, ]); } } } PermissionSeeder.php000064400000001207152665565360010560 0ustar00createPermission($permission->value, 'web'); } } private function createPermission(string $name, string $guardName): void { Permission::query() ->firstOrCreate([ 'name' => $name, 'guard_name' => $guardName, ]); } } AdminPermissionSeeder.php000064400000000677152665565360011543 0ustar00value); $permissions = Permission::all(); $role->syncPermissions($permissions); } } DashboardWidgetSeeder.php000064400000001144152665565360011463 0ustar00 $case) { ModelsDashboardWidget::firstOrCreate([ 'name' => $case->value, ], [ 'enabled' => true, 'order' => $index, ]); } } } UserAiCreditFakeSeeder.php000064400000000451152665565360011542 0ustar00first()?->update([ 'entity_credits' => User::getFreshCredits(100), ]); } } DatabaseSeeder.php000064400000001041152665565360010130 0ustar00call([ IntroductionSeeder::class, RoleSeeder::class, PermissionSeeder::class, AdminPermissionSeeder::class, ]); $this->command->info('Currency table seeded!'); } } IntroductionSeeder.php000064400000004053152665565360011113 0ustar00createAllIntroduction(); } 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.php000064400000001563152665565360007711 0ustar00createEntities(); } 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.php000064400000002155152665565360007513 0ustar00createAllTokens(); } 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, ] ); } }