lwazi
v1.16.12
Published
Lwazi is an AI assistant for Laravel. Install with one command to add an AI assistant to your Laravel app.
Downloads
9,494
Maintainers
Readme
Lwazi
AI assistant for Laravel applications.
Install
npm install lwazi --legacy-peer-deps
npx lwazi installUninstall
npm uninstall lwazi --legacy-peer-depsRequirements
- Laravel 10+
- PHP 8.1+
- Ollama running locally
Configure
Add to .env:
LWAZI_OLLAMA_URL=http://localhost:11434
LWAZI_MODEL=llama3.2:1bUsage
Lwazi adds a chat widget to your app automatically. Users can ask about your site and get AI-powered responses.
Commands
php artisan lwazi:ingest # Re-analyze app structure
php artisan lwazi:clear # Clear cacheCustomization
Publish config to customize:
php artisan vendor:publish --provider="Lwazi\Core\Providers\LwaziServiceProvider"Edit config/lwazi.php to change:
- AI model settings
- Widget appearance
- Response behavior
Troubleshooting
Ollama not available
- Run
ollama serve - Check
LWAZI_OLLAMA_URLin.env
Model not found
- Run
ollama pull llama3.2:1b
npm install/uninstall errors
- Use
--legacy-peer-depsflag
License
MIT
