andriajah Thu Jun 2023 9 months ago

Laravel: Create Public Api With Cache And Rate Limits

What if you want to create an API endpoint that would be public for the whole world? In this video, I will live-code exactly that, including some performance and security measures.

00:00 Short intro
00:44 Step 1/4. Simple API Controller/Route
02:22 Step 2/4. Transform with API Resources
05:45 Step 3/4. Caching and Observers
10:27 Step 4/4. Throttle and Rate Limits

Related links:
- Eloquent API Resources: https://laravel.com/docs/8.x/eloquent-resources
- Cache in Laravel: https://laravel.com/docs/8.x/cache
- Rate Limiting in Laravel 8: https://laravel.com/docs/8.x/routing#rate-limiting

- - - - -
Support the channel by checking out our products:
- Enroll in my Laravel courses: https://laraveldaily.teachable.com
- Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
- Purchase my Livewire Kit: https://livewirekit.com
- View Laravel Code Examples: https://laravelexamples.com
- Subscribe to my weekly newsletter: http://bit.ly/laravel-newsletter