StaffCoder
Laravel

Laravel Backend Development Exercises

Laravel 13PHP 8
2 modules · 8 challengesSign up
Module 1 of 2 · 4 challenges

Routing & Controllers

Wire routes to controller actions with correct verbs/status codes, implicit route-model binding (404 on miss), named routes/constraints/redirects, and invokable controllers with query params + 422. Star: Bookstore Catalogue API (routing + Eloquent retrieval).
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Event Listing Routes

Sign up to unlock
67%2 of 3 solvedeasy
About this challenge

This problem covers sending event URLs to the right controller method, keeping numeric ids and slugs apart, and permanently redirecting an old URL to the new one.

Solved in a browser IDE and graded by tests. Sign up to solve

Support Ticket Endpoints

Sign up to unlock
25%1 of 4 solvedeasy
About this challenge

This problem covers building every endpoint of a support ticket resource, finding each ticket from its URL, and answering create, update and delete with the right status codes.

Solved in a browser IDE and graded by tests. Sign up to solve

Invoice Summary

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers summarising invoice lines from a single endpoint that reads optional filters, falls back to defaults when they are left out, and rejects a date range that ends before it starts.

Solved in a browser IDE and graded by tests. Sign up to solve

Bookstore Catalogue API

STAR
Solving it completes the module
50%1 of 2 solvedeasy
About this challenge

This problem covers building a book catalogue API from its routes up: the five book endpoints, browsing one genre at a time in a chosen order, and redirecting old catalogue links.

Solved in a browser IDE and graded by tests. Sign up to solve

About this path

Learn how to build web APIs with Laravel step by step, one module at a time, with each module building on the last.

This path starts with the core of a Laravel 13 app: routing and controllers, and Eloquent models and migrations. You should be able to write basic PHP before you start. No earlier Laravel experience is needed. The Eloquent module ends with gym membership records built on migrations, casts and model defaults.

Frequently asked questions

4

What will I practice in this path?

2 modules: Routing & Controllers and Eloquent Models & Migrations.

How many Laravel exercises are there, and how hard are they?

8 exercises, all easy.

What does this path run on?

Challenges run on Laravel 13 and PHP 8.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.