|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace Database\Seeders\Codebar; |
| 4 | + |
| 5 | +use App\Enums\LocaleEnum; |
| 6 | +use App\Models\Page; |
| 7 | +use Illuminate\Database\Seeder; |
| 8 | + |
| 9 | +class PagesTableSeeder extends Seeder |
| 10 | +{ |
| 11 | + /** |
| 12 | + * Run the database seeds. |
| 13 | + */ |
| 14 | + public function run(): void |
| 15 | + { |
| 16 | + $this->deCH(); |
| 17 | + $this->enCH(); |
| 18 | + } |
| 19 | + |
| 20 | + private function enCH() |
| 21 | + { |
| 22 | + $locale = LocaleEnum::EN->value; |
| 23 | + |
| 24 | + Page::updateOrCreate( |
| 25 | + [ |
| 26 | + 'key' => 'start.index', |
| 27 | + 'locale' => $locale, |
| 28 | + ], |
| 29 | + [ |
| 30 | + 'robots' => 'index,follow', |
| 31 | + 'title' => 'Bringing Innovative Ideas to Life', |
| 32 | + 'description' => 'We listen, think conceptually, and develop software around user needs using open technologies. Your ideas, our expertise.', |
| 33 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 34 | + ] |
| 35 | + ); |
| 36 | + |
| 37 | + Page::updateOrCreate( |
| 38 | + [ |
| 39 | + 'key' => 'news.index', |
| 40 | + 'locale' => $locale, |
| 41 | + ], |
| 42 | + [ |
| 43 | + 'robots' => 'index,follow', |
| 44 | + 'title' => 'News & Insights', |
| 45 | + 'description' => 'Stay up to date with the latest news, expert insights and trends on software development, open technologies and digital innovation from codebar.', |
| 46 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 47 | + ] |
| 48 | + ); |
| 49 | + |
| 50 | + Page::updateOrCreate( |
| 51 | + [ |
| 52 | + 'key' => 'about-us.index', |
| 53 | + 'locale' => $locale, |
| 54 | + ], |
| 55 | + [ |
| 56 | + 'robots' => 'index,follow', |
| 57 | + 'title' => 'About Us – codebar solutions AG', |
| 58 | + 'description' => 'Get to know codebar solutions AG – your Swiss partner for conceptual software development using open technologies and standards.', |
| 59 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 60 | + ] |
| 61 | + ); |
| 62 | + |
| 63 | + Page::updateOrCreate( |
| 64 | + [ |
| 65 | + 'key' => 'services.index', |
| 66 | + 'locale' => $locale, |
| 67 | + ], |
| 68 | + [ |
| 69 | + 'robots' => 'index,follow', |
| 70 | + 'title' => 'Conceptual Software Development', |
| 71 | + 'description' => 'We start by listening, then work with you to develop concepts based on future user needs. From concept to implementation.', |
| 72 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 73 | + ] |
| 74 | + ); |
| 75 | + |
| 76 | + Page::updateOrCreate( |
| 77 | + [ |
| 78 | + 'key' => 'products.index', |
| 79 | + 'locale' => $locale, |
| 80 | + ], |
| 81 | + [ |
| 82 | + 'robots' => 'index,follow', |
| 83 | + 'title' => 'User-Centric Software Solutions', |
| 84 | + 'description' => 'Our software solutions are built around the needs of users, delivering real value through open technologies and standards.', |
| 85 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 86 | + ] |
| 87 | + ); |
| 88 | + |
| 89 | + Page::updateOrCreate( |
| 90 | + [ |
| 91 | + 'key' => 'legal.imprint.index', |
| 92 | + 'locale' => $locale, |
| 93 | + ], |
| 94 | + [ |
| 95 | + 'robots' => 'index,follow', |
| 96 | + 'title' => 'Legal Notice', |
| 97 | + 'description' => 'All legal details about codebar solutions AG.', |
| 98 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 99 | + ] |
| 100 | + ); |
| 101 | + |
| 102 | + Page::updateOrCreate( |
| 103 | + [ |
| 104 | + 'key' => 'contact.index', |
| 105 | + 'locale' => $locale, |
| 106 | + ], |
| 107 | + [ |
| 108 | + 'robots' => 'index,follow', |
| 109 | + 'title' => 'Let\'s Talk', |
| 110 | + 'description' => 'Have an innovative idea? We start by listening to understand your needs, then work with you to bring your vision to life.', |
| 111 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 112 | + ] |
| 113 | + ); |
| 114 | + } |
| 115 | + |
| 116 | + private function deCH() |
| 117 | + { |
| 118 | + $locale = LocaleEnum::DE->value; |
| 119 | + |
| 120 | + Page::updateOrCreate( |
| 121 | + [ |
| 122 | + 'key' => 'start.index', |
| 123 | + 'locale' => $locale, |
| 124 | + ], |
| 125 | + [ |
| 126 | + 'robots' => 'index,follow', |
| 127 | + 'title' => 'Innovative Ideen zum Leben erwecken', |
| 128 | + 'description' => 'Wir hören zu, denken konzeptionell und entwickeln Software, die sich an den Bedürfnissen der Nutzer:innen orientiert. Mit offenen Technologien und Standards.', |
| 129 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 130 | + ] |
| 131 | + ); |
| 132 | + |
| 133 | + Page::updateOrCreate( |
| 134 | + [ |
| 135 | + 'key' => 'news.index', |
| 136 | + 'locale' => $locale, |
| 137 | + ], |
| 138 | + [ |
| 139 | + 'robots' => 'index,follow', |
| 140 | + 'title' => 'Neuigkeiten & Insights', |
| 141 | + 'description' => 'Aktuelle News, Fachbeiträge und Trends rund um Softwareentwicklung, offene Technologien und digitale Innovation von codebar.', |
| 142 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 143 | + ] |
| 144 | + ); |
| 145 | + |
| 146 | + Page::updateOrCreate( |
| 147 | + [ |
| 148 | + 'key' => 'about-us.index', |
| 149 | + 'locale' => $locale, |
| 150 | + ], |
| 151 | + [ |
| 152 | + 'robots' => 'index,follow', |
| 153 | + 'title' => 'Über uns – codebar solutions AG', |
| 154 | + 'description' => 'Lerne die codebar solutions AG kennen – dein Schweizer Partner für konzeptionelle Softwareentwicklung mit offenen Technologien und Standards.', |
| 155 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 156 | + ] |
| 157 | + ); |
| 158 | + |
| 159 | + Page::updateOrCreate( |
| 160 | + [ |
| 161 | + 'key' => 'services.index', |
| 162 | + 'locale' => $locale, |
| 163 | + ], |
| 164 | + [ |
| 165 | + 'robots' => 'index,follow', |
| 166 | + 'title' => 'Konzeptionelle Softwareentwicklung', |
| 167 | + 'description' => 'Wir beginnen mit dem Zuhören, dann erarbeiten wir gemeinsam Konzepte basierend auf den Anforderungen künftiger Nutzer:innen. Vom Konzept bis zur Umsetzung.', |
| 168 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 169 | + ] |
| 170 | + ); |
| 171 | + |
| 172 | + Page::updateOrCreate( |
| 173 | + [ |
| 174 | + 'key' => 'products.index', |
| 175 | + 'locale' => $locale, |
| 176 | + ], |
| 177 | + [ |
| 178 | + 'robots' => 'index,follow', |
| 179 | + 'title' => 'Nutzerzentrierte Softwarelösungen', |
| 180 | + 'description' => 'Unsere Softwarelösungen orientieren sich an den Bedürfnissen der Nutzer:innen und bieten echten Mehrwert durch offene Technologien und Standards.', |
| 181 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 182 | + ] |
| 183 | + ); |
| 184 | + |
| 185 | + Page::updateOrCreate( |
| 186 | + [ |
| 187 | + 'key' => 'legal.imprint.index', |
| 188 | + 'locale' => $locale, |
| 189 | + ], |
| 190 | + [ |
| 191 | + 'robots' => 'index,follow', |
| 192 | + 'title' => 'Rechtliches', |
| 193 | + 'description' => 'Alle rechtlichen Informationen zur codebar solutions AG.', |
| 194 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 195 | + ] |
| 196 | + ); |
| 197 | + |
| 198 | + Page::updateOrCreate( |
| 199 | + [ |
| 200 | + 'key' => 'contact.index', |
| 201 | + 'locale' => $locale, |
| 202 | + ], |
| 203 | + [ |
| 204 | + 'robots' => 'index,follow', |
| 205 | + 'title' => 'Lass uns sprechen', |
| 206 | + 'description' => 'Hast du eine innovative Idee? Wir beginnen mit dem Zuhören, um deine Bedürfnisse zu verstehen, dann arbeiten wir gemeinsam daran, deine Vision zum Leben zu erwecken.', |
| 207 | + 'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_1200/www-codebar-ch/seo/seo_codebar.webp', |
| 208 | + ] |
| 209 | + ); |
| 210 | + } |
| 211 | +} |
0 commit comments