As with any e-commerce site, it is important for users to know the terms and conditions and privacy policy that your site offers. This is for their own safety and yours as well. This section allows you to set up your pages for your privacy policy, return policy, terms of use and shipping policy to be presented to customers.Documentation Index
Fetch the complete documentation index at: https://docs.laravelshopper.dev/llms.txt
Use this file to discover all available pages before exploring further.
Model
The model used isShopper\Core\Models\Legal. It uses the HasSlug trait for automatic slug generation.
Database Schema
| Column | Type | Nullable | Default | Description |
|---|---|---|---|---|
id | bigint | no | auto | Primary key |
title | string | no | - | Legal page title (unique) |
slug | string | no | auto | URL-friendly identifier (unique) |
content | longtext | yes | null | Legal page content (rich text) |
is_enabled | boolean | no | false | Whether this legal page is published |
created_at | timestamp | yes | null | Creation timestamp |
updated_at | timestamp | yes | null | Last update timestamp |
Components
The components used to manage Legal page are found in the component configuration fileconfig/shopper/components/setting.php. Each component corresponds to the page that is defined
Add Legal content
In your administration area you must click on the “cog” icon to display the settings page of your store. From your admin panel, on the blue sidebar click on the cog icon, go toSettings > Legal.
Once in this page, all the legal pages are displayed as a tab. You can just fill in the content of each page and click on the Enable switch to retrieve the content of your page and display it in your front-end.

Retrieve Data
Once the information is filled in, we can display it to our users in the views we have created. To do this we will start by creating a controller that will take care of collecting our information and send it to a viewLegal::enabled() is a scope that filters legal pages where is_enabled is true. This ensures draft pages are not shown to customers.
Routes
Once we have created the controllers we will associate the routes that will allow us to display our contents. We will display our content in theweb.php.
Views
You can create views in this way to arrange the content of your legal pages.It’s just an idea of how to make your views, not a recommendation. If your front-end is in react, vue or svelte you will not necessarily have the same architecture. So keep in mind that it’s just to display your content.