Part 2: Full Demo – AI Prompts Across Two Laravel Apps Using MCP
Goal: User types a prompt in Client App, AI interprets it, sends a structured command to MCP Server App, which executes backend logic and returns JSON. The AI then presents…
Goal: User types a prompt in Client App, AI interprets it, sends a structured command to MCP Server App, which executes backend logic and returns JSON. The AI then presents…
If you’re new to Laravel and AI integration, you may have heard of MCP servers and wondered: “What is it, and why do I need it?”
Understanding Laravel’s request lifecycle can feel abstract. So let’s imagine your Laravel application is a restaurant. Here’s how everything works.
Does the service container resolve dependencies before the router runs, or only after Laravel knows which controller method to call?
auth() is a helper function provided by Leaf’s authentication package.
When you start learning MVC frameworks like LeafPHP (and later Laravel), one concept becomes very important:
Soft deletes allow you to “delete” records without permanently removing them from the database. Instead of deleting a row, a deleted_at timestamp is set. This makes it possible to restore…
This is a list of every command available in Aloe. To view this list from your terminal, run php leaf list.
When choosing a PHP framework, developers often compare Laravel and LeafPHP. Both are capable frameworks — but when it comes to handling forms, validation, and preserving user input after errors,…
LeafPHP is fast, lightweight, and genuinely pleasant to work with — yet if you search online, you’ll notice it often gets down-voted or dismissed, especially by developers coming from Laravel.