Let's Build a Complete Laravel Property Listing API from Scratch
Hi Laravel developers! This video will show you how you could create a Laravel Property Listing API. In this tutorial, we will start by using the code from my previous tutorial where I created a complete Laravel Sanctum API Authentication System. Then, we will continue by defining brokers, since every property is associated with a broker. Once we have defined the brokers inside our Property Listing API, we will move on by defining our properties. Once we have finished the properties inside our Property Listing API, we will be looking at protecting certain routes from unauthorized users.
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews, or a coaching session for Laravel:
https://calendly.com/codewithdary
đź’Ś Newsletter
Sign up for my free weekly email newsletter: https://newsletter.codewithdary.com/
📚 New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: https://www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB
🔥 Resources
- Twitter: https://twitter.com/codewithdary
- Instagram: https://www.instagram.com/codewithdary/
- Blog: https://blog.codewithdary.com/
- Patreon: https://www.patreon.com/user?u=30307830
- GitHub: https://github.com/codewithdary/laravel-socialite-github-login
- TikTok: https://www.tiktok.com/@codewithdary
đź”— Useful links
- Laravel Sanctum: https://www.youtube.com/watch?v=TzAJfjCn7Ks&t
- Laravel API Tutorial: https://www.youtube.com/watch?v=xvqPEEpRBJ4&t
đź“‹ Table of Content
00:00 - Introduction
00:52 - Database & credentials setup
02:06 - Adding a Laravel Sanctum Authentication System & Routes
09:55 - Defining Migrations
27:45 - Defining the Brokers Controller
45:48 - Protecting Certain Broker Routes
47:19 - Defining the Properties Controller
01:05:00 - Protecting Certain Property Routes
01:05:59 - Outro