Skip to content

Instantly share code, notes, and snippets.

@acacha
Created September 24, 2015 14:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save acacha/d908bcc6ffd089878a2a to your computer and use it in GitHub Desktop.
public function getPermissionNameSuffix(Model $model) {
return strtolower((new ReflectionClass($model))->getShortName());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment