public function getPermissionsAttribute($permissions)
	{
		if ( ! $permissions)
		{
			return array();
		}

		if (is_array($permissions))
		{
			return $permissions;
		}

		if ( ! $_permissions = json_decode($permissions, true))
		{
			throw new \InvalidArgumentException("Cannot JSON decode permissions [$permissions].");
		}

		return $_permissions;
	}
public function getPermissionsAttribute($permissions)
	{
		if ( ! $permissions)
		{
			return array();
		}

		if (is_array($permissions))
		{
			return $permissions;
		}

		if ( ! $_permissions = json_decode($permissions, true))
		{
			throw new \InvalidArgumentException("Cannot JSON decode permissions [$permissions].");
		}

		return $_permissions;
	}
public function getPermissionsAttribute ( $ permissions ) { if ( ! $ permissions ) { return array ( ) ; } if ( is_array ( $ permissions ) ) { return $ permissions ; } if ( ! $ _permissions = json_decode ( $ permissions , true ) ) { throw new \ InvalidArgumentException ( "Cannot JSON decode permissions [$permissions]." ) ; } return $ _permissions ; }
Mutator for giving permissions.

@param  mixed  $permissions
@return array  $_permissions
Mutator for giving permissions .