Skip to content

AI Agent Skill ​

Laravel Money is built for humans and AI agents. These docs are written for developers, and the package also ships an agent skill: a short guide that teaches coding agents such as Claude Code, Codex and Cursor how to install, configure and use Laravel Money the way it's meant to be used.

Installing the skill ​

If your app uses Laravel Boost, the skill is installed for you by php artisan boost:install; run php artisan boost:update after updating Laravel Money to refresh it. With any other agent:

bash
npx skills add laranex/laravel-money

Or copy skills/laravel-money from the repository into your project's .claude/skills or .agents/skills folder.

What the skill covers ​

Work with money in a Laravel app using laranex/laravel-money: the immutable Laranex\LaravelMoney\Money value object, Eloquent casts, exact arithmetic, percentages, allocation, rounding and formatting with the correct precision for every currency.

It covers when to use the package, installing and configuring it, building money, calculating, formatting and serializing, storing amounts in the database, handling errors, testing your app and what to avoid. It is written from the package source and kept in the repository next to the code, so agents follow the same API, configuration and conventions these docs describe.

Keeping it current ​

The skill lives in the package repository and is versioned with it, so it always describes the release you install. When you update Laravel Money, update the skill the same way you installed it.

Released under the MIT License, except where a package says otherwise.