src/Console/LikeableRecountCommand.php
protected function recountLikesOfAllModelTypes()
    {
        $likeableTypes = app(LikeContract::class)->groupBy('likeable_type')->get();
        foreach ($likeableTypes as $like) {
            $this->recountLikesOfModelType($like->likeable_type);
        }
    }
protected function recountLikesOfAllModelTypes()
    {
        $likeableTypes = app(LikeContract::class)->groupBy('likeable_type')->get();
        foreach ($likeableTypes as $like) {
            $this->recountLikesOfModelType($like->likeable_type);
        }
    }
protected function recountLikesOfAllModelTypes ( ) { $ likeableTypes = app ( LikeContract :: class ) -> groupBy ( 'likeable_type' ) -> get ( ) ; foreach ( $ likeableTypes as $ like ) { $ this -> recountLikesOfModelType ( $ like -> likeable_type ) ; } }
Recount likes of all model types.

@return void

@throws \Cog\Likeable\Exceptions\ModelInvalidException
Recount likes of all model types .