Word Filter
A list of forbidden words for each language that you edit from the panel: the server refuses any text that contains one, before anything is saved, with a message in the user's language, and the app checks the same list.
By فتحي عبد المنعم صقرFirst published Dec 1, 2026
About this feature
A list of forbidden words for each language that you edit from the panel: the server refuses any text that contains one, before anything is saved, with a message in the user's language, and the app checks the same list.
What it does
- How it works: you keep a list of words for each language. Every feature that takes free text from a user (chat, live and others) declares its text fields, and the server checks them: a request that contains a word from the list is refused with an error in the user's own language, before anything is saved. The app downloads the active words once (with a cache check) and checks with the same list.
- Which texts are checked: only the fields that features have declared as text fields; without this feature nothing is checked. A form in the panel that must refuse a forbidden word (for example a user's name set from the panel) also asks the filter.
- What you set in the control panel, in Users, Word Filter: one list per language. Each row has the word, its replacement ("***" by default) and a switch to turn it on or off. You can add one word, or paste many at once in the language you choose (one per line), edit and delete. The list starts with an initial set only on an empty table. Five permissions (browse, create, edit, delete and show), given to the admin position by default.
- Files: nothing is uploaded.
- What the user sees in the app: nothing to configure; when a text contains a forbidden word the user gets a clear message in their language and the text is not sent.
- Works with all themes: there is no screen of its own in the app.
- Why it is worth it for you: it keeps chats, names and bios clean without you reading them, in every language you serve, and you change the list yourself in a minute. A new feature can plug into it with one line.
- Requirements: only the base users. Features that take text declare their fields to be checked.
Add-ons
Depends on
Only the base users.
In the app
Swipe for more
Install and remove
After you buy, you'll also find these commands in My purchases.
Install
php artisan feature:install word_filter --applyRemove (your data stays)
Disable the feature in the base with one command (shown on this page). The check, the route and the screen disappear and nothing is filtered. The word list stays in the data.
php artisan feature:remove word_filterRemove its add-ons first: removing a feature while its add-ons are installed is refused.
No add-ons for this feature yet.
Required features
This has no requirements: you can install it on its own.
Install and remove
The command sets up the feature's tables, admin panel pages, permissions, settings, and base data. In the app, the feature appears in its place on its own. The feature disappears from the app and the admin panel, and your data stays. Install it again and everything comes back as it was.
After you buy, you'll also find these commands in My purchases.
Install
php artisan feature:install word_filter --applyRemove (your data stays)
Disable the feature in the base with one command (shown on this page). The check, the route and the screen disappear and nothing is filtered. The word list stays in the data.
php artisan feature:remove word_filterRemove its add-ons first: removing a feature while its add-ons are installed is refused.
Use this feature inside yours
سجّل حقول النص بتاعتك في الـslot من الـprovider بتاعك (من غير requires، الميزة اختيارية):
PanelSlots::register('text.fields', 'my_feature', 'my_feature', ['routes' => ['api/my/route' => ['message']]]);
الـpattern بيتقارن بـuri الراوت (* wildcard)، وممكن يبدأ بميثود (POST api/x/*)، ومن غيره بيتفحص POST/PUT/PATCH. الحقل مسار نقطي (items.*.text).
في التطبيق: نص الرفض حسب الحقل
لما نص يتمنع، التطبيق بيعرض سبب بيناسب الحقل (مش نص الشات لكل حاجة). الميزة بتسأل الفلتر من الـplace word_filter.check، والمدخل فيه دالتين بنفس التنفيذ:
allows(String text): النص العام «"{word}" is not allowed here. Please change it and try again.».allowsIn(String text, {String field})(النوعbool Function(String, {String field})): نفس الفحص بنص الحقل.
قيم field المسموحة: message (رسالة مكتوبة في صندوق الغرفة/البث)، name (اسم غرفة أو بث)، comment (تعليق)، reel (وصف ريل)، moment (لحظة)، وtext (العام، وهو الافتراضي). أي قيمة تانية بترجع للنص العام. النصوص مفاتيح ترجمة عند الميزة (Resources/i18n/app) ومفيش حاجة تتكتب عند الميزة اللي بتنده.
Places.read<bool Function(String, {String field})>('word_filter.check', 'allowsIn')?.call(text, field: 'name')
What's new
1.1.10Released Dec 1, 2026By فتحي عبد المنعم صقر