![Using Laravel Sanctum for API Authentication: A Guide with Examples | by Bernard Sarfo Twumasi | Medium Using Laravel Sanctum for API Authentication: A Guide with Examples | by Bernard Sarfo Twumasi | Medium](https://miro.medium.com/v2/resize:fit:1024/1*aRaVghlLx0OHTd3SAdXPEw.png)
Using Laravel Sanctum for API Authentication: A Guide with Examples | by Bernard Sarfo Twumasi | Medium
![Alexander Lichter on X: "If you are using #laravel as #api 'only', you might want to return JSON on every request, even on errors/exceptions. The easiest way to do so is using Alexander Lichter on X: "If you are using #laravel as #api 'only', you might want to return JSON on every request, even on errors/exceptions. The easiest way to do so is using](https://pbs.twimg.com/media/DXWzvEkXUAAVj-9.png:large)
Alexander Lichter on X: "If you are using #laravel as #api 'only', you might want to return JSON on every request, even on errors/exceptions. The easiest way to do so is using
![Using Laravel Sanctum to create dynamic abilities - Freek Van der Herten's blog on PHP, Laravel and JavaScript Using Laravel Sanctum to create dynamic abilities - Freek Van der Herten's blog on PHP, Laravel and JavaScript](https://freek.dev/admin-uploads/v8S6IN5akDECRwH2PbPCgz2p8gP09w45NHXdZulb.jpg)