src/Reflex/Lockdown/Roles/Eloquent/Role.php
public function getPermission($permission)
    {
        if ($permission instanceof PermissionInterface) {
            $permission =   $permission->key;
        }

        return $this->permissions()
            ->key($permission)
            ->first();
    }
public function getPermission($permission)
    {
        if ($permission instanceof PermissionInterface) {
            $permission =   $permission->key;
        }

        return $this->permissions()
            ->key($permission)
            ->first();
    }
public function getPermission ( $ permission ) { if ( $ permission instanceof PermissionInterface ) { $ permission = $ permission -> key ; } return $ this -> permissions ( ) -> key ( $ permission ) -> first ( ) ; }
Get the actual permission
@param  string $permission Permission name/key
@return Model|Builder|null
Get the actual permission