src/Searsaw/Drawbridge/models/BridgeUser.php
public function getPermissionIdFromName($perm_name)
    {
        $permission = static::$app['db']->connection()
            ->table('permissions')->where('name', '=', $perm_name)->first();

        return $permission->id;
    }
public function getPermissionIdFromName($perm_name)
    {
        $permission = static::$app['db']->connection()
            ->table('permissions')->where('name', '=', $perm_name)->first();

        return $permission->id;
    }
public function getPermissionIdFromName ( $ perm_name ) { $ permission = static :: $ app [ 'db' ] -> connection ( ) -> table ( 'permissions' ) -> where ( 'name' , '=' , $ perm_name ) -> first ( ) ; return $ permission -> id ; }
Get the ID of a permission with the passed in name

@param $perm_name string The name of the permission whose ID to get

@return integer
Get the ID of a permission with the passed in name