1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-16 16:44:03 +00:00

configure attributes for creating resource

This commit is contained in:
Abrar Ahmad 2022-08-08 16:55:27 +05:00
parent db4a795c3e
commit b90fb6ec77
4 changed files with 82 additions and 2 deletions

View file

@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TestCreateUsersWithExtraFieldTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('global_id')->unique();
$table->string('name');
$table->string('email');
$table->string('password');
$table->string('role');
$table->string('code');
});
}
public function down()
{
Schema::dropIfExists('users');
}
}