コード例 #1
0
 /**
  * Load the object's metadata through the Metadata Builder object.
  *
  * @param Fluent $builder
  */
 public function map(Fluent $builder)
 {
     $builder->table('users')->charset('utf8mb4');
     $builder->bigIncrements('id');
     $builder->string('username')->unique();
     $builder->string('email')->unique();
     $builder->string('password');
     $builder->rememberToken();
     $builder->timestamps();
     $builder->softDelete();
 }
コード例 #2
0
 /**
  * Load the object's metadata through the Metadata Builder object.
  *
  * @param Fluent $builder
  */
 public function map(Fluent $builder)
 {
     if ($this->table) {
         $builder->table($this->table);
     }
 }