Ignore:
Timestamp:
10/17/21 18:39:50 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
bd9e8e3
Parents:
120759b
Message:

added validation to blades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/migrations/2021_09_27_171107_create_users_table.php

    r120759b rd795fa6  
    2222            $table->string('password');
    2323            $table->string('email')->unique();
    24             $table->string('mobile_number')->unique();
     24            $table->string('phone_number')->unique();
    2525            $table->string('avatar')->nullable();
    2626            $table->integer('role_id')->unsigned();
     
    3232            $table->integer('security_code')->nullable();
    3333            $table->string('verify_token')->nullable();
     34            $table->integer("created_by")->unsigned();
    3435            $table->rememberToken();
    3536            $table->timestamps();
     37
     38            $table->foreign("created_by")->references("id")->on("users")->onDelete("cascade")->onUpdate("cascade");
    3639        });
    3740    }
Note: See TracChangeset for help on using the changeset viewer.