Support the ongoing development of Laravel.io →
posted 9 years ago
IOC

Use Case

When the facade resolves a class (with the help of a service provider) whose properties are stateful.

See golonka/BBCodeParser#31.

Current Behavior

All facades resolved instances seem to be cached.

Implementation

Provide a $cache configuration property to indicate whether the facade should get cached or not. Default to true for performance reasons and backward compatibility.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.