misaf/vendra-custom-page
Composer 安装命令:
composer require misaf/vendra-custom-page
包简介
Dynamic page management system with CMS capabilities
README 文档
README
Tenant-aware custom page management for Vendra applications.
Features
- Custom page categories
- Custom pages with translatable content
- Filament resources on the
adminpanel
Requirements
- PHP 8.2+
- Laravel 12
- Filament 5
- Livewire 4
- Pest 4
- Tailwind CSS 4
misaf/vendra-tenantmisaf/vendra-activity-log
Installation
composer require misaf/vendra-custom-page php artisan vendor:publish --tag=vendra-custom-page-migrations php artisan migrate
Optional translations publish:
php artisan vendor:publish --tag=vendra-custom-page-translations
The service provider and Filament plugin are auto-registered.
Usage
Create a page category:
use Misaf\VendraCustomPage\Models\CustomPageCategory; $category = CustomPageCategory::query()->create([ 'name' => ['en' => 'Company'], 'description' => ['en' => 'Company pages'], 'slug' => ['en' => 'company'], 'position' => 1, 'status' => true, ]);
Create a custom page:
use Misaf\VendraCustomPage\Models\CustomPage; CustomPage::query()->create([ 'custom_page_category_id' => $category->id, 'name' => ['en' => 'About Us'], 'description' => ['en' => 'About our company'], 'slug' => ['en' => 'about-us'], 'position' => 1, 'status' => true, ]);
Load pages with their category:
$pages = CustomPage::query() ->with('customPageCategory') ->where('status', true) ->get();
Filament
Resources are available in the Custom Pages cluster on the admin panel:
- Custom Page Categories
- Custom Pages
Testing
composer test
License
MIT. See LICENSE.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 9
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-12