The guides
Restify Documentation
Restify serves JSON:API endpoints and MCP tools for your Laravel for Rust models. You describe a model's API once, in a repository, and Restify serves it to people and to AI agents with the same rules.
These guides ship inside the laravel-restify crate, so they always match the version an application has installed.
Start here
What Restify is, and a first model served.
Building
What a repository declares, and what clients may do with it.
- Fieldswhat a resource shows, in which view and to whom, and how each type is written.
- Filteringsearch, filters, sorting and pagination of a list.
- Relationshipsloading a model's related models with
?related=. - Writingthe input that creates and updates a model, validation, and hooks.
- Actions and gettersoperations beyond list, show, create, update and delete, such as publishing a post.
- AuthorizationAPI tokens, and who may do what.
- Authenticationthe register, login, logout, password reset, email verification and profile endpoints of Restify for PHP.
- Soft deleteshide deleted rows, and mark rows deleted instead of removing them.
- Bulk operationscreating, updating and deleting many models in one request, all or nothing.
- Files and imagesfile uploads, where they are saved, how they are shown, and deleting them.
- Before you go to productionthe settings to check before the first deploy.
Agents and tooling
The tools AI agents get, the OpenAPI document, and tests.
Migrating from PHP
Move a Restify for PHP application, and keep its tokens working.
Reference
Facts to look up.
For AI coding agents #
Run laravel restify:install once in an application. It writes a skill to .agents/skills/building-apis-with-restify that tells an agent how to work with Restify and where these guides are, and the skill restify-migrate, which moves a Restify for PHP application to Rust. It writes the same files to .claude/skills, where Claude Code finds them as /building-apis-with-restify and /restify-migrate. In a PHP application, php artisan restify:rust-install writes restify-migrate (Migrating from Restify for PHP). Run laravel restify:list --json to see what an application serves.
Status #
Restify for Laravel for Rust is at version 0.2, on laravel-rust 0.2.