binetvn/laravel-pages
Simple pages manager for Laravel applications. Provides basic structure to create and manage site pages, intended for quick setup of static or CMS-like content within a Laravel project.
PageCreated, PageUpdated) for hooks into business logic.spatie/laravel-translatable would be needed.MarketingPage, LegalPage) and their fields (title, content, slug).composer require binetvn/laravel-pages.php artisan vendor:publish --provider="Binetvn\Pages\PagesServiceProvider".config/pages.php.Page::create([...])).@include('about')) with dynamic calls:
@include('pages::page', ['page' => $page])
Route::get('/pages/{slug}', [PageController::class, 'show']);
resources/views/vendor/pages.Page subclasses.page_cache table or Redis) for high-traffic pages.config/pages.php).pages table bloat) via Laravel Debugbar or New Relic.SELECT queries for page rendering. Mitigate with:
Cache::remember).slug and published_at.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Database corruption | Pages become inaccessible | Regular backups (e.g., Laravel Backup). |
| Cache invalidation issues | Stale page content | Implement cache tags or versioned cache keys. |
| Admin panel security breach | Unauthorized page edits | Integrate with Laravel’s auth + Spatie’s RBAC. |
| High traffic on a single page | Database overload | Use Redis for page caching. |
| Package abandonment | No updates/security patches | Fork the repo or migrate to a maintained alternative (e.g., October CMS). |
config/pages.php.Page model.How can I help you explore Laravel packages today?