Tag: laravel
20 articles
- Deploying Your Laravel API and Vue SPA
Deploy your Vue 3 SPA on Vercel or Netlify while hosting the Laravel 11 API via Laravel Forge on Digital Ocean or Railway.
- Handling API Errors in Your Vue 3 SPA
How to handle validation errors, server errors, and network failures gracefully in a Vue 3 SPA consuming a Laravel API.
- Shaping API Responses with Laravel Resources
Laravel API resources provide fine-grained control over JSON responses, letting you transform models and include relationships consistently.
- File Uploads with Laravel and S3-Compatible Storage
Set up file uploads in Laravel 11 using Flysystem with S3-compatible storage like Digital Ocean Spaces or AWS S3.
- Basic Authorization with Admin Roles
How to set up basic authorization in a Laravel 11 API and Vue 3 SPA, adding an is_admin field to control access to protected content.
- Updating User Profile Information
How to update a user's profile details in a Vue 3 SPA using Laravel Fortify's profile update functionality.
- Laravel 11 API Authentication with Sanctum and Fortify
How to set up full authentication using Laravel Sanctum and Fortify including CORS, email verification, and password resets.
- The Demo Application
Overview of the demo application you'll be building - a Vue 3 SPA with Laravel 11 API authentication.
- Debugging Your API with Laravel Telescope
Laravel Telescope provides insight into requests, exceptions, and database queries. Essential for debugging your API.
- Testing API Endpoints with Insomnia or Postman
Testing your API endpoints is essential when building a Laravel API. Here's how to use Insomnia or Postman with Sanctum token authentication.