Model access Di Settings

Hello!

I used slim for some projects and its really nice!
Most of the time i combine it with eloquent model orm which works fine together.

Now i try to use the eloquent mutator and accesor to encrypt some model attributes ( DB fields)

For this my model needs to access some vars from the settings, which are stored in the DI Container.
I cant find a way to do this.

I cant figure out how to do this. Has anyone done this before or knows how to do this?

https://laravel.com/docs/8.x/eloquent-mutators#defining-a-mutator

Using slim v4.
Regards Nico