Source: juststeveking.uk

Building APIs in Laravel
Building APIs in Laravel is an art form. You must think beyond data access and wrapping your Eloquent Models in API endpoints.

Firstly, we will make the assumption that we are building an API-only Laravel application - so we will not need any api prefix.

I use JSON:API standards within my Laravel APIs as it is an excellent standard that is well-documented and used within the API community.

The final stage for building a solid API in Laravel is looking at how we respond as an API.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners