Skip to main content

Checking Features

Entitlements represent the features a subscriber can access based on their active plan. The Entitlements facade provides a clean API for checking feature access and limits.

Basic feature check

Checking a limit

When a feature is a numeric limit rather than a boolean, use limit():

Checking a value

Some features hold a string value rather than a count. Compare them with allows():

Plan feature configuration

Features are declared in config/subscribd.php under each plan:

Gate integration

Register a gate for each feature to use Laravel’s built-in @can directive and Gate::allows() calls:

Aborting on missing entitlement

Next steps