Skip to content

Instantly share code, notes, and snippets.

@danmartin
Created April 18, 2019 23:40
Show Gist options
  • Save danmartin/dc8457539c8e55386a91f174b887cd28 to your computer and use it in GitHub Desktop.
Save danmartin/dc8457539c8e55386a91f174b887cd28 to your computer and use it in GitHub Desktop.
user access
public function scopeNonRepConfig($query, $feature)
{
return $query->where('feature_name', '=', $feature)
->where('code', '=', '');
}
public function flipNonReps(){
return $this->nonRepConfig('configurator')->update('has_access', '=', 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment