Skip to content

About

Build a REST API with Laravel 13 & Sanctum (Tokens, Resources, Tests) — Code with Antonio course

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a REST API with Laravel 13 & Sanctum (Tokens, Resources, Tests)

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.

What you'll build

Notes becomes a REST API for a mobile app

Lessons

# 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

Requirements

  • 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

Run the final app

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 dev

Repository structure

README.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

License

MIT — use it for anything, credit appreciated.


Generated on 2026-09-27 from the course scripts. Code with Antonio · AI tutor.

About

Build a REST API with Laravel 13 & Sanctum (Tokens, Resources, Tests) — Code with Antonio course

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages