public function allows($resource = null, $privilege = null, $profile = null)
    {
        if($profile === null)
            $profile = auth()->guard('pulsar')->user()->profile_id_010;

        try
        {
            return parent::isAllowed($profile, $resource, $privilege);
        }
        catch(Exception\InvalidArgumentException $e)
        {
            return false;
        }
    }
public function allows($resource = null, $privilege = null, $profile = null)
    {
        if($profile === null)
            $profile = auth()->guard('pulsar')->user()->profile_id_010;

        try
        {
            return parent::isAllowed($profile, $resource, $privilege);
        }
        catch(Exception\InvalidArgumentException $e)
        {
            return false;
        }
    }
public function allows ( $ resource = null , $ privilege = null , $ profile = null ) { if ( $ profile === null ) $ profile = auth ( ) -> guard ( 'pulsar' ) -> user ( ) -> profile_id_010 ; try { return parent :: isAllowed ( $ profile , $ resource , $ privilege ) ; } catch ( Exception \ InvalidArgumentException $ e ) { return false ; } }
Function to check permission

@param null $resource
@param null $privilege
@param null $profile
@return bool
Function to check permission