Companion repository for the Code with Antonio video course · Watch on YouTube.
Build a REST API with Laravel 13 & Sanctum: token login, clean JSON with API resources, CRUD with real status codes, abilities and tests.
Notes becomes a REST API for a mobile app
| # | Lesson | Video | Folder |
|---|---|---|---|
| 1 | Your notes, outside the browser | 0:00 | lessons/01-your-notes-outside-the-browser |
| 2 | Turn on the API | 2:51 | lessons/02-turn-on-the-api |
| 3 | Log in, get a token | 5:09 | lessons/03-log-in-get-a-token |
| 4 | Shape the JSON | 8:16 | lessons/04-shape-the-json |
| 5 | Create, update, delete in JSON | 12:09 | lessons/05-create-update-delete-in-json |
| 6 | Limit and revoke tokens | 14:52 | lessons/06-limit-and-revoke-tokens |
| 7 | Test the API | 17:44 | lessons/07-test-the-api |
- Laravel 13.x (13.32.0) · Sanctum 4.3.3 · PHP 8.4 · Pest 5.2.1 · SQLite
- PHP, Composer and the Laravel installer (one command, see lesson 2) or Laravel Herd
- Node.js + npm
cd app
composer install
cp .env.example .env
php artisan key:generate
touch database/database.sqlite
php artisan migrate
npm install && npm run build
composer run devREADME.md this file
lessons/ one folder per lesson: goal, timestamp, commands and files exactly as in the video
app/ the final working project
assets/ thumbnail
MIT — use it for anything, credit appreciated.
Generated on 2026-09-27 from the course scripts. Code with Antonio · AI tutor.