Download the PHP package mbs047/model-mind without Composer
On this page you can find all versions of the php package mbs047/model-mind. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package model-mind
ModelMind
ModelMind is a secure, configurable, model-aware AI chat assistant for Laravel applications.
It gives any Laravel app a reusable Blade/Tailwind chat modal, persisted conversation history, configurable Eloquent model context, safe column auto-discovery, learning memory, feedback, and an OpenAI provider behind a clean package interface.
Demo Store
Try ModelMind in Market Lane Store, a sample store and showcase application for MBS packages with ModelMind installed for testing.
Features
- Drop-in Blade chat modal with Tailwind-friendly styles.
- Headless JSON API mode for React, Vue, Inertia, and mobile clients.
- Optional streaming responses for faster-feeling chat UIs.
@modelMind,@modelMindModal,@modelMindStyles, and@modelMindScriptsdirectives.- Built-in presets for store, admin, support, docs, and CRM applications.
- Configurable widget position, width, offset, z-index, labels, prompt tone, and brand mark.
- Model-aware answers from only the Eloquent models you explicitly enable.
- User-aware context with guard, role, tenant, and Gate/policy scoping.
- Ranked retrieval with weighted columns, fuzzy matching, multilingual normalization, optional Scout, and optional vector search.
- Auto-discovered columns with sensitive field filtering.
- Per-model control through the
HasModelMindContexttrait. - Persisted chat sessions, message history, user feedback, and learned knowledge.
- Current-page awareness so visitors can ask about the product, record, or content they are viewing.
- Usage analytics and Laravel events for latency, token usage, provider/model usage, failures, feedback rate, action clicks, generated answers, and learned memory.
- Configurable table prefix for clean package ownership.
- Safe named-route action buttons from configured Laravel routes.
- Source citations that show the model, record, fields used, and optional record button.
- Multilingual chat: visitors can ask and receive answers in their language, even when your stored application data is in one database language.
- Provider drivers for OpenAI, Anthropic, Gemini, Ollama, and custom AI gateways.
Quick Start
Install the package:
Publish the package assets and run migrations:
Add your OpenAI credentials:
Render ModelMind in your Blade layout:
Or use the one-line directive:
Enable the models the assistant is allowed to know about in config/model-mind.php:
Inspect the exact context before using it in production:
That is the whole first path: install, configure credentials, render the widget, enable safe model context, inspect it, and ask questions from your app.
Common Options
Supported widget positions are bottom-right, bottom-left, bottom-center, top-right, top-left, top-center, center, center-left, and center-right. Short aliases are accepted for top, bottom, left, and right.
Full Documentation
Read the documentation index in docs/examples.md for simple and advanced copyable setups. Each major feature has its own focused guide: installation, Blade rendering, themes, public assets, headless API mode, streaming responses, provider drivers, model configuration, multilingual answers, retrieval, route actions, source citations, authorization, security, learning memory, feedback, current page context, analytics, events and hooks, background queues, table prefixes, routes, performance, and testing.
For starter configuration by application type, run:
For custom UI work, read docs/customizing-the-modal.md. You can publish the default modal view, or point ModelMind to a new modal plus custom public CSS and JavaScript assets.
For application links, configure named route actions in config/model-mind.php; ModelMind will only turn approved route tokens into buttons.
Security
ModelMind is explicit by design. It does not expose every model automatically, filters common sensitive columns, respects model $hidden and $visible, strips HTML from context values by default, and treats database content as data rather than instructions.
Review SECURITY.md before reporting vulnerabilities or enabling sensitive production data.
Contributing
Pull requests are welcome. Please read CONTRIBUTING.md, run the test suite, and keep the package behavior secure by default.
License
ModelMind is open-sourced software licensed under the MIT license.
All versions of model-mind with dependencies
illuminate/auth Version ^11.0|^12.0|^13.0
illuminate/bus Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/queue Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0