/** * Reverse the migrations. * * @return void */ public function down() { Schema::drop(Follow::pivotTable()); }
/** * @return mixed */ public function followers() { return $this->belongsToMany(Follow::userModel(), Follow::pivotTable(), 'follow_id', 'user_id'); }