public function storeCallerPermission(Caller $caller, Permission $permission)
    {
        $this->getTable()->insert([
            'caller_type' => $caller->getCallerType(),
            'caller_id' => $caller->getCallerId(),
            'type' => $permission->getType(),
            'action' => $permission->getAction(),
            'resource_type' => $permission->getResourceType(),
            'resource_id' => $permission->getResourceId(),
        ]);

        $this->resetPermissionsCacheForCaller($caller);
    }
public function storeCallerPermission(Caller $caller, Permission $permission)
    {
        $this->getTable()->insert([
            'caller_type' => $caller->getCallerType(),
            'caller_id' => $caller->getCallerId(),
            'type' => $permission->getType(),
            'action' => $permission->getAction(),
            'resource_type' => $permission->getResourceType(),
            'resource_id' => $permission->getResourceId(),
        ]);

        $this->resetPermissionsCacheForCaller($caller);
    }
public function storeCallerPermission ( Caller $ caller , Permission $ permission ) { $ this -> getTable ( ) -> insert ( [ 'caller_type' => $ caller -> getCallerType ( ) , 'caller_id' => $ caller -> getCallerId ( ) , 'type' => $ permission -> getType ( ) , 'action' => $ permission -> getAction ( ) , 'resource_type' => $ permission -> getResourceType ( ) , 'resource_id' => $ permission -> getResourceId ( ) , ] ) ; $ this -> resetPermissionsCacheForCaller ( $ caller ) ; }
Stores a new permission for a caller

@return void
Stores a new permission for a caller