public static function _schema(Blueprint $table) { $table = parent::_schema($table); $table->morphs(static::$nameM); $table->morphs(static::$nameN); return $table; }
public static function _schema(Blueprint $table) { $table = parent::_schema($table); $table->integer('user_id'); $table->morphs('commentable'); $table->morphs('comment_root'); $table->longText('comment')->nullable(); }
public static function _schema(Blueprint $table) { $table = parent::_schema($table); $table->string('username', 100)->unique(); $table->string('employee_id', 100)->unique(); $table->string('email', 100)->unique(); $table->string('mobile', 20)->unique(); $table->string('avatar', 200)->nullable(); $table->string('password', 100); $table->string('remember_token', 100); $table->timestamp('last_login'); return $table; }