public function schema(Schema $table) { $table->increment('id'); $table->member_id('integer'); $table->role_id('tinyinteger'); $table->wx('string'); $table->weibo('string'); $table->qq('string'); $table->user_name('string', 32, true); $table->email('string', 255, true); $table->phone('string', 11, true); $table->password('string'); $table->permissions('string')->nullable(); $table->timeStamps(); $table->unique('phone', 'email', 'wx', 'weibo', 'qq'); }