sunrice / content-restriction
Members-only content for Sunrice CMS: restrict collections, taxonomies, entries and terms to signed-in accounts or some roles, and choose what visitors who may not open them get.
Package info
github.com/Digital-Citra-Kreatif/sunrice-content-restriction
pkg:composer/sunrice/content-restriction
v0.1.0
2026-11-21 12:21 UTC
Requires
- php: ^8.4
- illuminate/contracts: ^13.0
- illuminate/support: ^13.0
- spatie/laravel-package-tools: ^1.93
- sunrice/account: ^0.1
- sunrice/admin: ^0.8.1
- sunrice/cms: ^0.8.1
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-laravel: ^4.1
- spatie/laravel-responsecache: ^8.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 01:50:14 UTC
README
Members-only content for Sunrice CMS, built on
sunrice/account:
- Settings → Restricted content: the collections and taxonomies whose pages only signed-in accounts open, the roles that may open them, and what other visitors get (the sign-in page and back, a page of the site, or a message).
- An Access card in the entry and term editors, so each entry or term can differ.
- Restricted entries are left out of lists, search, menus and the sitemap for visitors who can't open them, or kept as teasers.
- An overridable Blade view for the message.
composer require sunrice/content-restriction php artisan migrate
$panel->plugin(CmsPlugin::make())->plugin(AccountPlugin::make())->plugin(ContentRestrictionPlugin::make());
See docs/index.md.