s3bsch / laravel-api-only-demo

Laravel API only demo application.
MIT License
2 stars 0 forks source link
api laravel php

Laravel API Only Demo

A Laravel demo application which is modified to serve an API only.

The necessary steps are well documented by commits and issues.

Why

When I was starting to work at Blockpit I was confronted with a Laravel codebase which was actually serving only API requests, but for historical reasons also contained all the Blade related parts.

After reading this tweet about an API only option for the Laravel installer from Taylor Otwell the idea for this project was born.

The goal is to get more familiar with bootstrapping a Laravel application in general. How does the default authentication mechanism work? How about Sanctum? And most importantly, how hard is it to handle a request of an already authenticated user without accessing the database (at least not for authentication).

License

The Laravel framework as well as this personal demo project are open-sourced licensed under the MIT license.