feat: add action to slider

This commit is contained in:
2025-09-27 00:45:33 +03:30
parent 876768ad68
commit 84aad9b8e0
4 changed files with 93 additions and 2 deletions
@@ -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('sliders', function (Blueprint $table) {
$table->json('action')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('sliders', function (Blueprint $table) {
$table->dropColumn('action');
});
}
};