How can you use Laravel resources in Slim?

Hello everyone
I like the implementation of resources in laravel for use when giving back to api. I’ve been using eloquent in Slim for a long time and wondering how resources can be used?

The Slim (3) documentation provides such information. It only needs to be adapted a little for the Slim 4 DI container.

This is also a good set of examples of how to use many Laravel components outside of Laravel, and the example typically uses Slim.