This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
2.2.0
- You can now disabled a brick management for an Eloquent model by setting the max number of bricks to
0
. This allows you to only disable one brick or more without having to list all allowed bricks in thecan_only_handle
model configuration. - Trying to (programmatically) add a brick to a model when the max number of bricks is already reached will now throw a
ModelHasReachedMaxNumberOfBricksException
. This behavior replaces the previous one, which automatically removed the oldest brick when a new brick was programmatically added to an Eloquent model which had reached the max number for this type of brick.