Let's Build a Complete Laravel Property Listing API from Scratch

preview_player
Показать описание
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

💌 Newsletter

📚 New Udemy Course

🔥 Resources

🔗 Useful links

📋 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
Рекомендации по теме
Комментарии
Автор

I think this is one of the best videos about Laravel API, more videos like this would be great.
Integration in the React will also be interesting

lukatarkhnishvili
Автор

I like the way you do your PUT/PATCH scenarios using the same Request, I was creating two request based on that scenarios thanks so much

munandisichali
Автор

Very glad you are here now...
It's been a long time...
God Blesses You!

TrikNgonlen
Автор

Thank you, Sir Dary, for everything you offer in your wonderful channel with unique content. I recommend that when creating an API Controller use this parameter --api to create only ( index, store, show, update and destroy ), for example:
php artisan make:controller BrokersController --api --resource

abdulmgeedali
Автор

Simple suggestion, you can avoid deleting "create" and "edit" methods manually by using "php artisan make:controller PhotoController --api" command. It generates an API resource controller that does not include mentioned methods.

pjr
Автор

Awesome timing! I am currently working on a real estate project

asfiaaiman
Автор

I think you can use --api directive to avoid cleaning up of controllers, like this:

php artisan make:controller BrokersController --resource --api

AtifAli-pm
Автор

Thanks for this awesome tutorial, by the way I am interested in your new upcoming tutorial in UDEMY, and I would like to know the release date.

mdazhardware
Автор

Great video! Really enjoyed this!
Is there a plan for a React frontend for this?

coderzealot
Автор

Thank you !!! Where can I find or better can you pls link the previous tutorial: "...from my previous tutorial where I created a complete Laravel Sanctum API Authentication System.." Thank you!

fibertechserver
Автор

thank you very much once again Sir your amazing video
it's really very nice
i loved to learn these API's to integrate with React js (Login. Register, and Broker, Properties)

Thank you :)

dheeraj_kumar_
Автор

very Help full it is more helpful if you put this API in React js

hubesh
Автор

Hello sir, quick question,
Is it possible to have web and api in one laravel?
If yes, what is the good and the bad of it?
Thanks.

ytef
Автор

for your property_characteristics table, why not user ?

TheStapler
Автор

how to add sancum abilites to the API, there is admin role can do anything, there is casier role only add and update and there is guest or user role only view
?

calmdownmysoul
Автор

39:13 & 40:42 what is wrong with the api response for zip_code? Validation issue? Thanks! 🙏

gdogmalone
Автор

How about jwt authentication with different roles?

chameeragamage
Автор

Maybe an idea to do code review on beginners (i have seen it do good with views)? I would love to send some code to be reviewed.

KaraSuraDraw
Автор

That check for validated data at 36:46 is not necessary, it will check it automatically if you pass the form request parameter. Is there also a reason when you create a broker, you pass data one by one in the array? Why not just put request-validated() there?

KaraSuraDraw
Автор

i am getting this error, when making migrate: "syntax error, unexpected identifier "ListingTypeEnum" syntax error, unexpected identifier "PropertuTypeEnum", syntax error, unexpected identifier "PropertyStatusEnum"

kathirmldata
join shbcf.ru