public function isFlooding(User $actor) { return Post::where('user_id', $actor->id)->where('time', '>=', new DateTime('-10 seconds'))->exists(); }