new design with nice layout
This commit is contained in:
@@ -4,26 +4,46 @@ use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void {
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('users', fn (Blueprint $table) => $table->boolean('is_admin')->default(false));
|
||||
Schema::create('site_sections', function (Blueprint $table) {
|
||||
$table->id(); $table->string('key')->unique(); $table->string('eyebrow')->nullable();
|
||||
$table->string('title'); $table->text('body')->nullable(); $table->string('button_label')->nullable();
|
||||
$table->string('button_url')->nullable(); $table->boolean('is_visible')->default(true);
|
||||
$table->unsignedInteger('sort_order')->default(0); $table->timestamps();
|
||||
$table->id();
|
||||
$table->string('key')->unique();
|
||||
$table->string('eyebrow')->nullable();
|
||||
$table->string('title');
|
||||
$table->text('body')->nullable();
|
||||
$table->string('button_label')->nullable();
|
||||
$table->string('button_url')->nullable();
|
||||
$table->boolean('is_visible')->default(true);
|
||||
$table->unsignedInteger('sort_order')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('site_settings', function (Blueprint $table) {
|
||||
$table->id(); $table->string('key')->unique(); $table->text('value')->nullable(); $table->timestamps();
|
||||
$table->id();
|
||||
$table->string('key')->unique();
|
||||
$table->text('value')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('contact_enquiries', function (Blueprint $table) {
|
||||
$table->id(); $table->string('name'); $table->string('email'); $table->string('company')->nullable();
|
||||
$table->string('service')->nullable(); $table->text('message'); $table->boolean('is_read')->default(false);
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('email');
|
||||
$table->string('company')->nullable();
|
||||
$table->string('service')->nullable();
|
||||
$table->text('message');
|
||||
$table->boolean('is_read')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
public function down(): void {
|
||||
Schema::dropIfExists('contact_enquiries'); Schema::dropIfExists('site_settings');
|
||||
Schema::dropIfExists('site_sections'); Schema::table('users', fn (Blueprint $table) => $table->dropColumn('is_admin'));
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('contact_enquiries');
|
||||
Schema::dropIfExists('site_settings');
|
||||
Schema::dropIfExists('site_sections');
|
||||
Schema::table('users', fn (Blueprint $table) => $table->dropColumn('is_admin'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
class DatabaseSeeder extends Seeder { public function run(): void { $this->call(SiteContentSeeder::class); } }
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$this->call(SiteContentSeeder::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,22 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\SiteSection;
|
||||
use App\Models\SiteSetting;
|
||||
use Illuminate\Database\Seeder;
|
||||
class SiteContentSeeder extends Seeder {
|
||||
public function run(): void {
|
||||
|
||||
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'],
|
||||
['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]);
|
||||
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]);
|
||||
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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user