Modules
Generic Pages
Create dynamic pages for your application such as Terms, Privacy, etc.
Intro
By default there are 4 pre-defined pages which you can update in PageSeeder.php
:
- Privacy Policy
- Terms of Service
- Cookie Policy
- Licenses
When creating page via seeder, you need to provide required attributes (combination of route_name
and group
attributes must be unique):
- title: Page title.
- url_path: Unique. URL path of the page.
- route_name: Route name (Laravel named routes).
- content: HTML content of the page.
- group: Optional. Defaults to
legal
. Does not affect the URL.
If you want to use other groups, for example about
, first you need to add them as enum in app/Enums/PageGroup.php
:
Admin
Administrators with correct permissions can manage Pages via admin panel.
Full docs coming soon…