gp247 / front
Frontend foundation & CMS package for GP247
Requires
- gp247/core: ~2.0
This package is auto-updated.
Last update: 2026-08-14 10:45:53 UTC
README
_____ _____ ___ _ _ _____
/ ____| __ \ |__ \| || | |___ |
| | __| |__) | ) | || |_ / /
| | |_ | ___/ / /|__ _| / /
| |__| | | / /_ | | / /
\_____|_| |____| |_| /_/
🌐 Language: 🇬🇧 English (current) · 🇻🇳 Tiếng Việt
Frontend foundation & CMS package for GP247
composer require gp247/front
Introduction
GP247/Front is the foundation package for GP247's entire frontend tier — not a mere presentation/theme layer. It provides both the public-facing storefront and a content management system (CMS), and serves as the shared infrastructure that other frontend packages (such as gp247/shop) build on. It is a required component of a full GP247 site, playing the role for the frontend tier that gp247/core plays for the admin tier.
Key features:
- Page content management (Page / CMS)
- Flexible template system + active-template view resolution
- Extensible plugin system
- Navigation, menu, link & banner management
- Integrated contact & subscription forms
- Shared frontend infrastructure (base Livewire components, layout, routes) for other packages to plug into
Installation
-
Install package
composer require gp247/front -
Configure routing and exceptions for GP247, open
bootstrap/app.php:
-
Comment out the web routes line:
//GP247 comment //web: __DIR__.'/../routes/web.php',
-
Register the service provider in
bootstrap/providers.php:return [ // ... existing providers GP247\Front\FrontServiceProvider::class, ];
-
Run the installation command:
php artisan gp247:front-install
Key Features
Page Management
- Create and manage static pages
- SEO support for each page
- Access control
Interface
- Flexible Template System
- Customizable layouts for each section
- Responsive design
Admin interface customization:
php artisan vendor:publish --tag=gp247:front-admin
Views will be stored at: resources/views/vendor/gp247-front-admin
Update the default template (GP247Front) views:
php artisan vendor:publish --tag=gp247:front-view
Views will be stored at: app/GP247/Templates/GP247Front
Publish the default template's public assets (css/js/images):
php artisan vendor:publish --tag=gp247:front-public
Assets will be stored at: public/GP247/Templates/GP247Front
Extensions
- Plugin support
- Custom module integration
- API for feature development
Overriding controllers
Step 1: Copy the controller files you want to override from
vendor/gp247/front/src/Controllers(orsrc/Api/Controllers) toapp/GP247/Front/Controllers(orapp/GP247/Front/Api/Controllers)
Step 2: Change the namespace from
GP247\Front\Controllers(orGP247\Front\Api\Controllers) toApp\GP247\Front\Controllers(orApp\GP247\Front\Api\Controllers) — just prependApp, keep the rest as-is.
Documentation
For detailed documentation, visit documentation
License
The GP247/Front is open-sourced software licensed under the MIT license.