Rework admin panel and other

This commit is contained in:
F4ilji
2025-04-02 18:37:20 +05:00
parent 49072e50c7
commit 5cd6ff11b5
198 changed files with 9715 additions and 6664 deletions
@@ -0,0 +1,29 @@
<?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::table('slides', function (Blueprint $table) {
$table->unsignedBigInteger('slidable_id')->nullable(); // Поле для идентификатора
$table->string('slidable_type')->nullable(); // Поле для типа модели
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('slides', function (Blueprint $table) {
$table->dropColumn(['slidable_id', 'slidable_type']);
});
}
};
@@ -0,0 +1,28 @@
<?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::table('custom_forms', function (Blueprint $table) {
$table->text('settings')->nullable()->after('send_message');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('custom_forms', function (Blueprint $table) {
$table->dropColumn('settings');
});
}
};