protected function getSlugsToReset(Repository $repository)
    {
        if ($this->validSlugProvided($repository)) {
            return collect([$this->argument('slug')]);
        }

        if ($this->option('force')) {
            return $repository->all()->pluck('slug');
        }

        return $repository->enabled()->pluck('slug');
    }
protected function getSlugsToReset(Repository $repository)
    {
        if ($this->validSlugProvided($repository)) {
            return collect([$this->argument('slug')]);
        }

        if ($this->option('force')) {
            return $repository->all()->pluck('slug');
        }

        return $repository->enabled()->pluck('slug');
    }
protected function getSlugsToReset ( Repository $ repository ) { if ( $ this -> validSlugProvided ( $ repository ) ) { return collect ( [ $ this -> argument ( 'slug' ) ] ) ; } if ( $ this -> option ( 'force' ) ) { return $ repository -> all ( ) -> pluck ( 'slug' ) ; } return $ repository -> enabled ( ) -> pluck ( 'slug' ) ; }
Using the arguments, generate a list of slugs to reset the migrations for.

@param \Caffeinated\Modules\Repositories\Repository $repository

@return \Illuminate\Support\Collection
Using the arguments generate a list of slugs to reset the migrations for .