user model is added login/logout

This commit is contained in:
Abhishek Mali
2025-11-07 17:34:56 +05:30
parent 5b764c7597
commit 7c7ac7683a
10 changed files with 375 additions and 92 deletions

View File

@@ -1,45 +0,0 @@
<?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()
{
Schema::create('mark_lists', function (Blueprint $table) {
$table->id();
// Order as requested:
$table->string('mark_no');
$table->string('origin');
$table->string('destination');
$table->string('customer_name');
$table->string('mobile_no');
$table->unsignedBigInteger('customer_id');
$table->date('date')->nullable();
$table->enum('status', ['active', 'inactive'])->default('active');
$table->timestamps();
// Foreign key constraint
$table->foreign('customer_id')
->references('id')
->on('users')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('mark_lists');
}
};

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('mark_list', function (Blueprint $table) {
$table->id();
$table->string('mark_no')->unique();
$table->string('origin');
$table->string('destination');
$table->string('customer_id');
$table->string('customer_name');
$table->string('company_name')->nullable();
$table->string('mobile_no');
$table->date('date')->nullable();
$table->enum('status', ['active', 'inactive'])->default('active');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('mark_list');
}
};