Compare commits
No commits in common. "4fe830228e62188b6148a351fc0f09ff0ea719af" and "7ee2254bb5c2de66db53d82151f309a27ef62a3a" have entirely different histories.
4fe830228e
...
7ee2254bb5
|
@ -17,10 +17,9 @@ class User extends Authenticatable
|
|||
* @var array<int, string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'last_name',
|
||||
'name',
|
||||
'middle_name',
|
||||
'email',
|
||||
'password',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,8 +11,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
|||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware) {
|
||||
// https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Axillary_Crutches.jpg/90px-Axillary_Crutches.jpg
|
||||
$middleware->validateCsrfTokens([ '*' ]);
|
||||
//
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions) {
|
||||
//
|
||||
|
|
|
@ -12,25 +12,17 @@ return new class extends Migration
|
|||
public function up(): void
|
||||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id()->type('uuid');
|
||||
$table->string('last_name');
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('middle_name');
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('passwords', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('hash');
|
||||
$table->foreignId('user_id')->index();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('password_reset_tokens', function (Blueprint $table) {
|
||||
$table->foreignId('user_id')->primary();
|
||||
$table->string('email')->primary();
|
||||
$table->string('token');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
});
|
||||
|
@ -51,7 +43,6 @@ return new class extends Migration
|
|||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
Schema::dropIfExists('passwords');
|
||||
Schema::dropIfExists('password_reset_tokens');
|
||||
Schema::dropIfExists('sessions');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue