marceli-to / aicms
AI-powered CMS for Laravel - Edit static content via chat
dev-main
2026-02-01 15:38 UTC
Requires
- php: ^8.2
- illuminate/support: ^12.0
- livewire/livewire: ^3.0
This package is auto-updated.
Last update: 2026-03-01 15:53:19 UTC
README
AI-powered CMS for Laravel — Edit static content via chat.
Installation
composer require marceli-to/aicms
Configuration
Publish the config file:
php artisan vendor:publish --tag=aicms-config
Add your Anthropic API key to .env:
AICMS_ANTHROPIC_KEY=sk-ant-... AICMS_MODEL=claude-sonnet-4-20250514
Edit config/aicms.php to define which files are editable:
'editable_paths' => [ 'resources/views/pages/*.blade.php', 'content/**/*.md', ],
Usage
- Make sure you have authentication set up in your Laravel app
- Visit
/aicms(or your configured route prefix) - Start chatting to edit content
Example prompts
- "Change the homepage title to 'Welcome to Our Site'"
- "Update the contact email to info@example.com"
- "List all editable files"
- "Show me the about page content"
Middleware
By default, AICMS uses ['web', 'auth'] middleware. Customize in config:
'middleware' => ['web', 'auth', 'admin'],
Customizing Views
Publish views to customize the UI:
php artisan vendor:publish --tag=aicms-views
Views will be copied to resources/views/vendor/aicms/.
Security
- Only files matching
editable_pathspatterns can be read/modified - Uses your existing Laravel authentication
- API key is stored server-side, never exposed to client
License
MIT