Digging Deeper

Use with AI

Laravel Boost
Give coding assistants the current Laravel Rest Api docs with the Laravel Boost skill, llms.txt, Markdown copies of every page, GitMCP and Context7.

Laravel Rest Api 3 changed most of the API of 2.x: typed fields, new payload keys, new endpoints. A coding assistant that learned from older code can write 2.x classes or payloads. The sources on this page give it the current documentation.

Laravel Boost skill

The package ships a skill for Laravel Boost: a SKILL.md file that a coding agent loads when it works on your resources, controllers, actions and metrics, or writes client payloads for the endpoints.

Installing the skill

The skill is named laravel-rest-api. It lives in the package at resources/boost/skills/laravel-rest-api/SKILL.md, so Laravel Boost finds it in vendor/lomkit/laravel-rest-api once both packages are installed:

composer require laravel/boost --dev
php artisan boost:install

Select the skill during the installation. After an update of the package, run php artisan boost:update so that the agent reads the skill of the installed version. See the Laravel Boost documentation for its commands and for replacing a package skill with your own.

What the skill covers

The skill applies when a task touches the Lomkit\Rest\ namespace, the Rest facade, the rest:* commands, or the app/Rest/Resources and app/Rest/Controllers directories. It describes:

  • the resource, the controller and Rest::resource(), with the routes of each endpoint;
  • the payloads of details, search, mutate, actions and metrics, with their limits and the exact form of their entries;
  • typed fields, relations, scopes, instructions, the text search and the search engines;
  • the authorization model: the checks before validation, the row checks, gates and the decision cache;
  • the OpenAPI document, Precognition and the Artisan commands;
  • the conventions to keep: declare what you expose, and prefer an action or an instruction to a custom controller method.

llms.txt and Markdown pages

The site publishes its pages in formats that assistants read directly:

URLContent
/llms.txtThe list of every 3.x page, with a description and a link to its Markdown copy
/llms-full.txtEvery 3.x page in one Markdown file
/raw/<page>.mdThe Markdown copy of one page, such as /raw/search/filters.md

Neither file includes the 2.x pages. Give an assistant llms.txt and let it open the pages it needs, or give it llms-full.txt when it can read a long file.

The Copy page button at the top of each page copies its Markdown. Its menu copies the link to the Markdown copy, opens it, or opens ChatGPT or Claude with a prompt that points to it.

GitMCP

GitMCP serves a GitHub project as a remote MCP server. Its address for this site, https://lomkit.gitmcp.io/laravel-rest-api-doc, reads the llms.txt of the site, and its tools let the assistant fetch the Markdown copy of any page. Add the server to your assistant:

claude mcp add --transport http laravel-rest-api https://lomkit.gitmcp.io/laravel-rest-api-doc

The server offers these tools: fetch_laravel_rest_docs, search_laravel_rest_docs, search_laravel_rest_code and fetch_generic_url_content. The last one opens the links of llms.txt, such as the Markdown copy of each page.

Context7

Context7 indexes the documentation of libraries and serves it to coding assistants through its MCP server and its ctx7 command. Laravel Rest Api is listed as /lomkit/laravel-rest-api-doc, which indexes the 3.x pages of this site. Set it up with npx ctx7 setup, then name the library in your prompt:

Add a search filter on the category of a product. use library /lomkit/laravel-rest-api-doc