Sms verification ok

This commit is contained in:
2023-12-02 13:36:50 +05:00
parent d6fd71e0dd
commit d9ea58608b
25 changed files with 692 additions and 169 deletions

View File

@@ -13,10 +13,12 @@ return new class extends Migration
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('username')->unique();
$table->string('name');
$table->string('email')->unique();
$table->string('email')->nullable()->unique();
$table->string('phone')->nullable()->unique();
$table->timestamp('email_verified_at')->nullable();
$table->timestamp('phone_verified_at')->nullable();
$table->string('password');
$table->string('locale')->default('tk');
$table->boolean('active')->default(true);

View File

@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::dropIfExists('loan_types');
Schema::create('loan_types', function (Blueprint $table) {
$table->id();
$table->jsonb('name');

View File

@@ -0,0 +1,29 @@
<?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::create('verifications', function (Blueprint $table) {
$table->id();
$table->string('username');
$table->string('code');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('verifications');
}
};

View File

@@ -36,14 +36,17 @@ class UsersTableSeeder extends Seeder
{
$admins = [
[
'username' => 'nurmuhammet',
'name' => 'Nurmuhammet Allanov',
'email' => 'nurmuhammet@mail.com',
'password' => '$2y$10$O7LFNdFIT3Rmfeo8tUfbqekB0x0incovkRP6eQuzvb7dVXysQyyBC',
], [
'username' => 'mahmyt',
'name' => 'Mahmyt Allaberdiyev',
'email' => 'mahmyt1206@gmail.com',
'password' => '$2y$10$O7LFNdFIT3Rmfeo8tUfbqekB0x0incovkRP6eQuzvb7dVXysQyyBC',
], [
'username' => 'dowran',
'name' => 'Döwran Myratlyýew',
'email' => 'dovran.m@mail.ru',
'password' => '$2y$10$EFQaBb.aM2KJRGGtuhjdM.3m4Mtm/vw68NjU2280d2RICDGI.o336',