You will have to integrate the rackspace opencloud driver into the filesystem and then integrate it into the spatie/media-library that exists in the site already.
You will need to and implement it into cruds and admin backend; so when images are uploaded they are uploaded to Rackspace cloud files instead of the storage directory while using the cdn link instead.
This is a larvel 8 project with a fully working admin backend done already.
Here is the connection that needs to be made and details on it.
[login to view URL]