diversen
This commit is contained in:
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('page_content', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('key')->unique();
|
||||
$table->text('value');
|
||||
$table->string('description')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
// Insert default content
|
||||
DB::table('page_content')->insert([
|
||||
// Home page - Hero section
|
||||
[
|
||||
'key' => 'home_hero_title',
|
||||
'value' => '🚲 Welkom bij Fiets Service Centrum',
|
||||
'description' => 'Home page hero title',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_hero_subtitle',
|
||||
'value' => 'Professionele fietsreparatie en onderhoudsdiensten',
|
||||
'description' => 'Home page hero subtitle',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
// Home page - Feature panels
|
||||
[
|
||||
'key' => 'home_feature_1_title',
|
||||
'value' => '🔧 Deskundige Reparaties',
|
||||
'description' => 'Home page feature 1 title',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_feature_1_text',
|
||||
'value' => 'Professionele fietsmonteurs met jarenlange ervaring',
|
||||
'description' => 'Home page feature 1 caption',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_feature_2_title',
|
||||
'value' => '⚡ Snelle Service',
|
||||
'description' => 'Home page feature 2 title',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_feature_2_text',
|
||||
'value' => 'Snelle doorlooptijden voor de meeste reparaties',
|
||||
'description' => 'Home page feature 2 caption',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_feature_3_title',
|
||||
'value' => '💰 Eerlijke Prijzen',
|
||||
'description' => 'Home page feature 3 title',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_feature_3_text',
|
||||
'value' => 'Concurrerende tarieven zonder verborgen kosten',
|
||||
'description' => 'Home page feature 3 caption',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_feature_4_title',
|
||||
'value' => '📅 Eenvoudig Boeken',
|
||||
'description' => 'Home page feature 4 title',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_feature_4_text',
|
||||
'value' => 'Eenvoudig online boekingssysteem',
|
||||
'description' => 'Home page feature 4 caption',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
// Home page - CTA section
|
||||
[
|
||||
'key' => 'home_cta_title',
|
||||
'value' => 'Klaar om je fiets te laten repareren?',
|
||||
'description' => 'Home page CTA title',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_cta_subtitle',
|
||||
'value' => 'Boek je afspraak online en krijg je fiets weer in topconditie.',
|
||||
'description' => 'Home page CTA subtitle',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_cta_button_1_text',
|
||||
'value' => 'Nu Service Boeken',
|
||||
'description' => 'Home page CTA button 1 text',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'home_cta_button_2_text',
|
||||
'value' => '💰 Prijslijst Bekijken',
|
||||
'description' => 'Home page CTA button 2 text',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
// Booking page
|
||||
[
|
||||
'key' => 'booking_header_title',
|
||||
'value' => '🚲 Boek Je Fiets Service',
|
||||
'description' => 'Booking page header title',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'key' => 'booking_header_subtitle',
|
||||
'value' => 'Vul het onderstaande formulier in om je fietsreparatie of onderhoud in te plannen',
|
||||
'description' => 'Booking page header subtitle',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('page_content');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user