Ejemplo n.º 1
0
 public function schema(Schema $table)
 {
     $table->increment('id');
     $table->string('user_id');
     $table->string('module');
     $table->string('operation');
     $table->log_content('text');
     $table->timeStamps();
 }
Ejemplo n.º 2
0
 public function schema(Schema $table)
 {
     $table->increment('id');
     $table->role_name('string');
     $table->permission('string');
     $table->timeStamps();
     $table->unique('role_name');
 }
Ejemplo n.º 3
0
 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');
 }