Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Schema::create('users', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('identifier')->unique();
- $table->string('username')->unique();
- $table->string('name');
- $table->string('avatar');
- $table->string('trade')->nullable();
- $table->decimal('funds')->default(0);
- $table->enum('visibility', [1, 2, 3]);
- $table->uuid('api_token');
- $table->timestamps();
- });
- User::updateOrCreate([
- 'identifier' => 'dasdasd',
- 'username' => $user->nickname,
- 'name' => $user->name,
- 'avatar' => $user->avatar,
- 'visibility' => $user->visibility,
- 'api_token' => Uuid::generate()
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement