PATH:
home
/
rwabteecom
/
project_11
/
database
/
migrations
/
Editing: 2023_05_08_070541_create_themes_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { public function up(): void { Schema::create('themes', function (Blueprint $table) { $table->id(); $table->json("title"); //$table->string('site_title')->nullable(); //$table->text('intro_text')->nullable(); //$table->string('location')->nullable(); //$table->string('location_link')->nullable(); //$table->boolean('hide_branding')->default(false); $table->string('font')->nullable(); $table->string('text_color')->default('#000000'); $table->string('layout')->default('full_width'); // full_width - grid $table->string('background_style')->default('solid'); // solid - gradient - image $table->string('background_color')->default('#ffffff'); $table->string('background_first_color')->default('#ffffff'); $table->string('background_second_color')->default('#eeeeee'); $table->string('background_direction')->default('0deg'); $table->string('button_font')->nullable(); $table->string('button_text_weight')->default('normal'); $table->string('button_background')->default('#ffffff'); $table->string('button_color')->default('#000000'); $table->double('button_transparency')->default(0); $table->double('button_border_radius')->default(100); $table->double('button_border_width')->default(0); $table->string('button_border_color')->default('#000000'); $table->double('button_shadow_xoffset')->default(0); $table->double('button_shadow_yoffset')->default(0); $table->double('button_shadow_blur')->default(0); $table->double('button_shadow_spread')->default(0); $table->string('button_shadow_color')->default('#000000'); $table->double('button_shadow_transparency')->default(0); $table->string('button_image_radius')->default('circle'); // circle - square $table->string('header_layout')->default('stacked'); // stacked - start_aligned $table->boolean('hide_profile_image')->default(false); $table->boolean('hide_profile_title')->default(false); $table->boolean('hide_community')->default(false); $table->boolean('enable_banner_image')->default(false); $table->string('social_icons_style')->default('icon'); // icon - background $table->string('social_icons_color')->default('#000000'); $table->string('social_icons_position')->default('top'); // top - bottom $table->boolean('status')->default(true); $table->softDeletes(); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('themes'); } };
SAVE
CANCEL