|Follower newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Follower newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Follower query() * @method static \Illuminate\Database\Eloquent\Builder|Follower whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Follower whereFollowingId($value) * @method static \Illuminate\Database\Eloquent\Builder|Follower whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Follower whereLocalFollowing($value) * @method static \Illuminate\Database\Eloquent\Builder|Follower whereLocalProfile($value) * @method static \Illuminate\Database\Eloquent\Builder|Follower whereNotify($value) * @method static \Illuminate\Database\Eloquent\Builder|Follower whereProfileId($value) * @method static \Illuminate\Database\Eloquent\Builder|Follower whereShowReblogs($value) * @method static \Illuminate\Database\Eloquent\Builder|Follower whereUpdatedAt($value) * * @mixin \Eloquent */ class Follower extends Model { protected $guarded = []; const MAX_FOLLOWING = 7500; const FOLLOW_PER_HOUR = 150; public function actor() { return $this->belongsTo(Profile::class, 'profile_id', 'id'); } public function target() { return $this->belongsTo(Profile::class, 'following_id', 'id'); } public function profile() { return $this->belongsTo(Profile::class, 'following_id', 'id'); } public function permalink($append = null) { $path = $this->actor->permalink("#accepts/follows/{$this->id}{$append}"); return url($path); } }