add password must be changed to user nova resource

This commit is contained in:
nurmuhammet committed 2025-02-21 01:30:12 +05:00
1 parent 0f3e0d6490
commit f5083821bc
5 files changed
+48 -5

No files matched your search

@@ -12,7 +12,7 @@
public function up(): void
{
Schema::table('loan_remaining_orders', function (Blueprint $table) {
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->foreignId('user_id')->nullable()->constrained()->cascadeOnDelete();
});
}
@@ -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('users', function (Blueprint $table) {
$table->boolean('password_must_be_changed')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('password_must_be_changed');
});
}
};