public static function setRoutePermissionsRoles($route, $permissions = [], $roles = [])
    {
        $routePermission = parent::firstOrNew(['route' => $route]);

        if (count($permissions)) {
            $routePermission->permissions = json_encode($permissions);
        }
        if (count($roles)) {
            $routePermission->roles = json_encode($roles);
        }

        $routePermission->save();

        return $routePermission;
    }