Added Website Setting Page

This commit is contained in:
Gitea
2025-04-23 02:44:47 +05:30
parent 59a2c07d81
commit 65f6df64aa
4 changed files with 266 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?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('settings', function (Blueprint $table) {
$table->id();
$table->string('app_name');
$table->string('app_version')->default('1.0');
$table->string('app_base_url')->url();
$table->string('app_admin');
$table->string('app_title');
$table->longText('app_description')->nullable();
$table->longText('app_keyword')->nullable();
$table->string('app_contact')->email()->nullable();
$table->longText('app_meta')->default('[]')->nullable();
$table->longText('app_social')->default('[]')->nullable();
$table->longText('app_header')->nullable();
$table->longText('app_footer')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('settings');
}
};