Files

28 lines
2.0 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Database\Seeders;
use App\Models\SiteSection;
use App\Models\SiteSetting;
use Illuminate\Database\Seeder;
class SiteContentSeeder extends Seeder
{
public function run(): void
{
$sections = [
['hero', 'Independent by design. Exceptional by default.', 'Digital experiences built to move your business forward.', 'We craft considered software, polished websites, and practical digital products for ambitious businesses. From the first sketch to the final deployment, every detail matters.', 'Start a project', '#contact'],
['services', 'WHAT WE DO', 'Technology with a human touch.', 'Strategy, design and engineering working together. Modern tools, clear thinking and software that genuinely earns its place.', 'Explore our services', '#services'],
['approach', 'HOW WE WORK', 'Small team energy. Big picture thinking.', 'Direct collaboration, honest communication and a relentless focus on outcomes. We keep projects agile, transparent and built for the long term.', 'Our process', '#process'],
['work', 'SELECTED EXPERTISE', 'From complex challenges to elegant solutions.', 'We turn real-world problems into streamlined systems, thoughtful products and reliable digital infrastructure.', 'Talk about your idea', '#contact'],
['cta', 'LET’S BUILD SOMETHING', 'Your next chapter starts with a conversation.', 'Tell us what you are building. We will help map out the smartest way forward.', 'Get in touch', '#contact'],
];
foreach ($sections as $i => [$key,$eyebrow,$title,$body,$button,$url]) {
SiteSection::firstOrCreate(['key' => $key], ['eyebrow' => $eyebrow, 'title' => $title, 'body' => $body, 'button_label' => $button, 'button_url' => $url, 'sort_order' => $i]);
}
foreach (['site_name' => 'ABSDEV', 'email' => '[email protected]', 'footer_tagline' => 'Independent software. Thoughtfully engineered.', 'location' => 'United Kingdom'] as $key => $value) {
SiteSetting::firstOrCreate(['key' => $key], ['value' => $value]);
}
}
}