feat: implement module generator with automated migration, model, and view creation

This commit is contained in:
Ümit Tunç
2026-04-28 23:45:00 +03:00
parent afc047b0bb
commit 74901dc3c6
7 changed files with 125 additions and 156 deletions
@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProductsTable extends Migration
{
public function up()
{
Schema::create('products', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->decimal('price', 15, 2)->nullable();
$table->string('category')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
public function down()
{
Schema::dropIfExists('products');
}
}