# Laravel's AI Sidekick 🚀🤖

Welcome to the future, cowboy! Laravel ain't just a trusty old horse anymore; it's teamed up with an advanced robot pal. Buckle up for a wild ride through the world of AI-assisted development! 🎠🤹‍♂️

<a name="why-laravel-for-ai-development"></a>
## Why Laravel, though? 🤔🤖

Let's face it, coding can be a chore. But with Laravel's AI companion, the party never stops! It's like having a tireless developer that fetches your coffee and writes code while you're still figuring out what to wear for the day. 🧐☕️💻

<a name="laravel-boost"></a>
## Laravel Boost: The Secret Sauce 🍴🥄

So, how does this magic trick work? By adding a dash of Laravel Boost to your project!

### Installation 📦🛠️

To get started, just run `composer require laravel/boost` and watch your Laravel app evolve like a time-lapse video. 🌱🔄🚀

### Available Tools 🧰🛠️

Our AI buddy's toolbox is overflowing with goodies:

1. **Documentation Search**: Ever lost in the depths of Laravel docs? Our AI will be your beacon, guiding you through like a seasoned sailor 🧭🌈
2. **Agents Integration**: Invite other AI agents to the party and watch as they collaborate on your project, making the good times roll 🎉🕺️🤖
3. **AI Guidelines**: Keeping up with best practices can be tough, but our AI buddy will remind you what not to do like a concerned parent 😓🙅‍♂️
4. **Agent Skills**: Our AI partner has a wide array of skills at its disposal, from writing code to brewing coffee (though it might need a human's touch for the latter) 💻☕️
5. **Documentation Search**: Remember, knowledge is power. Let our AI buddy help you find the answers you seek in the vast sea of Laravel docs 🔍📚

Get ready to code smarter, not harder! With Laravel and its AI sidekick, there's no mountain too high or valley too deep for your development endeavors. 💪🚀🤖

 Alrighty then! Buckle up, coders! 🚀

Laravel is the cat's pajamas when it comes to AI-assisted and self-aware programming - yes, you read that right! And we ain't just saying that because we're all about the alliteration.

Now, let's talk about the new kids on the block: Claude Code, OpenCode, Cursor, GitHub Copilot, and more. They're like super-powered sidekicks for your coding endeavors! These AI whiz-kids can churn out entire features, squash complex bugs faster than a superhero saving the day, and refactor code so quickly it makes your fingers look lazy. But here's the thing: these geniuses work best when they really understand your codebase, like an old friend who knows all your coding secrets.

<a name="why-laravel-for-ai-development"></a>
Why choose Laravel for AI development, you ask? Well, because it's the ultimate hangout spot for these tech titans! Laravel is so friendly and inviting that it's practically a neon sign flashing "Welcome, AI friends!" With its clean architecture and organized structure, your AI pals will have no trouble navigating through your project, making them more effective in their superhero-like tasks. So, grab your cape (or a good cup of coffee) and let's get coding with Laravel! 🦸‍♂️🚀

 ### Why Choose Laravel for Your AI's Sidekick Role?

Laravel's strict guidelines and military-like organization make it the perfect framework for your AI's budding career in development. It's like having a personal drill sergeant who always knows where to parade those controllers! No more aimless wandering through the code jungle, wondering if the controller went left or right – Laravel's got its compass set on precision.

When you need a new migration, it's not like asking an AI agent to find Waldo; the naming conventions and file locations are as predictable as a groundhog's shadow on Groundhog Day. Consistency is key here, and guesswork? Well, let's just say your AI will be too busy keeping up with Laravel's pace to fumble around in the dark.

<a name="laravel-boost"></a>
Now, let's talk about Laravel's expressive syntax – it's like giving an AI agent a box of Legos and telling it to build the Eiffel Tower. With Eloquent relationships, form requests, and middleware, your AI will be constructing code following patterns that even a human architect would approve. The final product? Code so polished, you'd think a seasoned Laravel developer with a flair for the dramatic wrote it – not some generic PHP cobbler!

 ### Laravel Boost: Your Secret Weapon against Code Boredom! 🚀

Say goodbye to monotonous coding and hello to the future with [Laravel Boost](https://github.com/laravel/boost)! This bad boy bridges the gap between AI coders and your Laravel app, turning your friendly neighborhood code assistant into a Laravel-savvy superhero!

Think of Boost as the Swiss Army knife of Laravel - an MCP (Model Context Protocol) server packed with over 15 super-powered tools designed to give artificial intelligences a mind-boggling insight into your app's structure, database, routes, and more. Install Boost, and watch in awe as your AI agent transforms from a Jack-of-all-trades coder into a Laravel expert who knows your app like the back of their robotic hand!

Boost offers three fantastic features: a toolkit of MCP goodies for exploring and interacting with your application, tailor-made AI guidelines for navigating the Laravel ecosystem, and a documentation API bursting with over 17,000 pieces of precious Laravel wisdom.

<a name="installation"></a>
### So, how do I get started? 🔧

Installing Boost is as easy as pie (or should we say, cakePHP?)! Just follow these simple steps:

1. Grab the latest version of Laravel Boost from GitHub.
2. Install it in your Laravel project using Composer.
3. Let the AI magic begin! Your new Laravel-savvy coder is now ready to assist you on your coding journey.

Happy coding, and may the code be with you! 🤖✨

 Alrighty, folks! Let's get this Boost party started in your Laravel 10, 11, 12, or 13 applications, as long as PHP 8.1 or higher is humming along in the engine bay. First things first, let's get Boost all suited up as a dev dependency:

```shell
composer require laravel/boost --dev
```

Once you've got it all dressed up, summon the magical installer with this incantation:

```shell
php artisan boost:install
```

This mystical wizard will take a gander at your IDE and AI agents, then present a smorgasbord of integrations tailored to your project's unique needs. Boost will whip up the required configuration files, such as `.mcp.json` for MCP-compatible editors and guideline files for your AI sidekick.

> [!NOTE]
> If you prefer each developer to customize their own environment like a mad scientist, you can safely add generated configuration files like `.mcp.json`, `CLAUDE.md`, and `boost.json` to your `.gitignore`.

<a name="available-tools"></a>
Now that we've got the formalities out of the way, let's dive into the world of Boost and unleash your inner superhero! 🚀🦸‍♂️✨

 Alright, buckle up, AI pals! Let's dive into the swanky toolkit Boost offers to our AI agents, all thanks to the Model Context Protocol - the party line between your Laravel application and our digital dance partners. Here's a playful lowdown of what's on offer:

<div class="content-list" markdown="1">

- **App Peekaboo** - Get the scoop on your PHP and Laravel versions, check out the crew of installed packages, and do a deep dive into your application's configuration and enviro-variables (that's developer talk for environment variables).
- **DB Sherlock** - Sleuth out your database schema, run read-only queries, and crack the case on your data structure without skipping a beat in the conversation.
- **Routemaster** - Hail all registered routes, complete with middleware, controllers, and parameters – the ultimate party planner for your Laravel app.
- **Artisan Party** - Find out who's throwing down with available Artisan commands and their swanky arguments, helping agents throw the right bash for your task.
- **Log Detective** - Nose around in your application logs to help sniff out issues and crack the case on errors like a pro detective.
- **Browser Buzz** - Gain access to browser console logs and errors when you're developing with Laravel's frontend tools – because who doesn't love a good mystery?
- **Tinker Time** - Execute PHP code in your application's context via Laravel Tinker, allowing agents to test theories and verify behavior like lab rats in a petri dish.
- **Doc Doc** - Search the Laravel ecosystem documentation with results customized to your installed package versions – think of it as a personal librarian for code books.
</div>

<a name="ai-guidelines"></a>
Now that we've got you laughing and learning, remember to keep our AI pals in line by following these guidelines:

1. Be specific with your requests – give them the exact information they need to assist you effectively.
2. Keep it clean – avoid using offensive or disrespectful language when interacting with our AI agents.
3. Have fun! – After all, we're here to make your Laravel experience enjoyable and productive.

 Alright, let's get this party started! 🎉🤖

Introducing Boost - your friendly neighborhood AI coach for Laravel land! These aren't just any ordinary guidelines, they're the Swiss Army knives of coding etiquette, tailor-made for our beloved Laravel community. Our AI pals learn to write code like a native Laraveler, follow the rules of the framework, and swerve around common bumps on the road to success.

These guidelines are as flexible as a yogi in lotus position, composable and version-aware, ensuring your AI agents receive instructions that align perfectly with your package versions.

We've got the lowdown on Laravel itself, and over 16 other packages in the Laravel universe - that's right, we're talking about all the cool kids like:

🎈 Livewire (2.x, 3.x, and 4.x) - The life of the party, always ready to shake things up!
🎮 Inertia.js (React, Svelte, and Vue variants) - The ultimate coding multiverse explorers!
💅 Tailwind CSS (3.x and 4.x) - The fashion police of the Laravel realm!
🌍 Filament (3.x and 4.x) - The world-builders, shaping the destiny of our framework!
🧪 PHPUnit, Pest PHP, Laravel Pint - The lab rats, constantly experimenting for improved code quality!

And that's just the beginning!

When you execute `boost:install`, Boost does a magic trick by detecting which packages your application uses and assembling the relevant guidelines into your project's AI context files.

Now, let the coding fun begin! 🚀✨🤖💻🎉

 ### Code Ninja Tricks (CNTs)

Ready to unleash your inner superhero? Meet the CNTs - the secret weapon of every modern Laravel dev! Think of them as light, laser-focused instruction manuals that pop up like a genie's lamp when you need them most. Unlike those dusty old rulebooks that take forever to load, these ninja tricks only pull out their katanas when it's time for a coding showdown in specific domains, making AI-spun code more contextually relevant and less bloated than a Thanksgiving dinner with your in-laws!

Our CNTs are compatible with all the cool kids on the block: Livewire, Inertia, Tailwind CSS, Pest, and many others. To get them on board, simply run `ninja:install` and pick "Tricks" as an add-on when prompted. Once enabled, our magical algorithm will automatically scan your `composer.json` for any detected packages and equip you with the appropriate CNTs – think of it like a customized belt filled with gadgets for your coding adventures!

<a name="documentation-search"></a>

Happy ninja-ing, code warriors!

 ### Doc Hunt

Dive into the world's most adventurous Laravel library! Our swashbuckling Documentation API empowers your friendly neighborhood AI bots to delve into a treasure trove of over 17,000 Laravel ecosystem gems. Unlike random pirate radio stations, our docs are indexed, vectorized, and filtered to nail that precise package version you're after!

When your trusty AI sidekick needs to fathom the workings of a particular feature, it can embark on a quest through Doc Hunt's API and return with accurate, version-specific intel. No more common pirate problems like your trusty parrot suggesting antiquated methods or syntax from long-lost ships!

<a name="robot-buddy"></a>
Now, buckle up and set sail for adventure – or just scroll down to learn about integrating with our helpful robot pal! 🏴‍☠️📚

 ### Integrating with Our Robot Overlords

Ready to party like it's 2140? Get ready to dance with the robots, because Boost is teaming up with the coolest AI tools and IDEs that can keep up with Model Context Protocol's breakdance moves!

Want to join the rave but don't know how to get in? No worries, we got you covered. Check out the [Get Your Robot Invitation](/docs/{{version}}/boost#get-your-robot-invitation) section of our Boost documentation for a step-by-step guide on getting cozy with Cursor, Claude Code, Codex, Gemini CLI, GitHub Copilot, and Junie.

Just remember, these robots are smart, but they still need you to keep them in check and teach them some sweet moves. Now, let's get coding! 🤖🎉🚀