Download the PHP package gigabait93/filament-pages without Composer
On this page you can find all versions of the php package gigabait93/filament-pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gigabait93/filament-pages
More information about gigabait93/filament-pages
Files in gigabait93/filament-pages
Package filament-pages
Short Description Filamen custom pages plugin. Documentation: https://github.com/GIGABAIT93/filament-pages/tree/main/docs
License MIT
Informations about the package filament-pages
Filament Pages
A powerful and flexible page builder plugin for Filament Admin that allows you to create dynamic, multi-language pages with a block-based content system.
Features
- 🏗️ Block-based Page Builder - Create pages using reusable content blocks
- 🌍 Multi-language Support - Built-in translation system for international websites
- 📱 Responsive Design - Mobile-friendly page layouts
- 🎨 Rich Content Blocks - Text, Images, Gallery, Video, Hero sections, and more
- 🔧 Customizable Templates - Create and use custom block templates
- 🧭 Navigation Integration - Automatic navigation menu generation
- 👁️ Visibility Control - Control page visibility and access
- 🎯 Position Management - Drag and drop page ordering
Screenshots
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
Optionally, you can publish the views using:
You can publish the language files using:
This is the contents of the published config file:
Usage
Admin Panel Setup
Register the plugin in your Admin Panel Provider:
Client Panel Setup
Register the plugin in your Client Panel Provider:
Service Provider Registration
Make sure to register the service provider in your config/app.php:
Or if you're using Laravel 11's automatic package discovery, this will be handled automatically.
Creating Pages
- Navigate to the Pages section in your Filament admin panel
- Click "New Page" to create a page
-
Fill in the basic information:
- Name: The display name of the page
- Slug: URL-friendly identifier
- Template: Choose from available templates
- Status: Active/Inactive
- Position: Order in navigation
- Add content blocks by clicking "Add Block" and choosing from:
- Text Block: Rich text content
- Markdown Text Block: Markdown formatted text
- Image Block: Single image with caption
- Gallery Block: Multiple images gallery
- Video Block: Video embedding
- Hero Block: Large banner section
- Button Block: Call-to-action buttons
- Two Columns Block: Side-by-side content
- Divider Block: Section separators
Multi-language Support
The plugin supports multi-language pages:
- Configure available locales in the config file
- Create translations for each page
- Content blocks are automatically translatable
- Use the language switcher in the admin interface
Available Content Blocks
Text Block
Rich text editor with formatting options:
- Rich text content
- Typography controls
- Link management
- List formatting
Image Block
Single image with options:
- Image upload
- Alt text for SEO
- Caption text
- Image sizing options
Gallery Block
Multiple image showcase:
- Multiple image upload
- Image ordering
- Lightbox functionality
- Grid layout options
Video Block
Video embedding:
- YouTube/Vimeo URLs
- Local video upload
- Autoplay options
- Responsive sizing
Hero Block
Large banner sections:
- Background image/video
- Overlay text
- Call-to-action buttons
- Alignment options
Button Block
Call-to-action elements:
- Button text and URL
- Style variants
- Icon support
- Target options
Custom Templates
You can create custom block templates:
- Publish the views:
php artisan vendor:publish --tag="filament-pages-views" - Create new template directories in
resources/views/vendor/pages/blocks/ - Add your custom Blade templates
- Templates will be automatically discovered
Example custom template structure:
Helper Functions
The plugin provides several helper functions:
page_normalize_blocks()
Normalizes block content array:
page_media_url()
Generates media URLs:
templatesOptions()
Gets available templates:
iconsOptions()
Gets available Heroicons:
Frontend Display
To display pages on the frontend, the plugin automatically registers routes. You can also manually create routes:
Customizing Views
Publish and customize the views:
The main page view is located at:
Block templates are located at:
Navigation Integration
Pages are automatically added to navigation menus. You can control this behavior:
- Set navigation group in page settings
- Choose navigation icon
- Set navigation position
- Enable/disable navigation visibility
Credits
- Gigabait93
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Filament Plugin Directory
This plugin is listed in the Filament Plugin Directory.
All versions of filament-pages with dependencies
laravel/framework Version ^12.0
filament/filament Version ^4.0
filament/forms Version ^4.0
filament/tables Version ^4.0
filament/actions Version ^4.0
filament/notifications Version ^4.0