# How can you use Laravel resources in Slim?

**URL:** <https://discourse.slimframework.com/t/how-can-you-use-laravel-resources-in-slim/4673>\
**Category:** Questions\
**Created:** [February 26, 2021, 12:42am UTC](https://discourse.slimframework.com/t/how-can-you-use-laravel-resources-in-slim/4673 "2021-02-26T00:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![musaev.haybulla](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@musaev.haybulla](https://discourse.slimframework.com/u/musaev.haybulla)\
**Post date:** [February 26, 2021, 12:42am UTC](https://discourse.slimframework.com/t/how-can-you-use-laravel-resources-in-slim/4673/1 "2021-02-26T00:42:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [February 26, 2021, 9:47am UTC](https://discourse.slimframework.com/t/how-can-you-use-laravel-resources-in-slim/4673/2 "2021-02-26T09:47:10Z")

</div>

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

- [Using Eloquent with Slim - Slim Framework](https://www.slimframework.com/docs/v3/cookbook/database-eloquent.html)

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [February 26, 2021, 12:17pm UTC](https://discourse.slimframework.com/t/how-can-you-use-laravel-resources-in-slim/4673/3 "2021-02-26T12:17:02Z")

</div>

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

> **[mattstauffer/Torch](https://github.com/mattstauffer/Torch)**
>
> Examples of using each Illuminate component in non-Laravel applications
