Making a create route - How to make a Laravel CRUD API Tutorial #3

preview_player
Показать описание
In this tutorial we cover the RESTful api routes with Laravel's resources and resource collections.

Get the code here:

Follow me on social media:
Twitter: @QuentinWatt
Facebook: @quentinwatt
Instagram: @quentinwatt

Subscribe:

I also make videos here:

Donate with Paypal:
Рекомендации по теме
Комментарии
Автор

Best tutorials ever
Thank you very much

foroughsarrafzadeh
Автор

Superb Explanation :) Great Tutorial, thank you so much for putting in so much time and effort.

shafqatalinawaz
Автор

How could i removed specific KEY Values from data (Items), for in your JSON example i want to remove "City" from your result than how could it possible ?

willjimmy
Автор

I am getting BLOB data in my result how can i change those data in base64, i got an error of UTF-8 character

willjimmy
Автор

hello thank u very much! i d like to ask one question, how to use string variables as a dynamic route instead of id? like instagram.com/username

aotegaliyev
Автор

well actually i don't use this Resource because:
you can use this to make arrays from data, where

the result:
{
"room": {
"id": 4,
"user_id": 4,
"name": "Macedonia Palace",
"city": "Thessaloniki",
"area": "GEvGCHN2WMasd",
"photo": "images/room-4.jpg",
"room_type": "Single Room",
"count_of_guests": 1,
"price": 85,
"location": "asdasdasdasdasd",
"lat_location": 31.48,
"lng_location": 93.27,
"short_description": "C1askfYfChm3PHJl97c9nr7trcKR2rYzHEqliaPPIjCLzbd1nM",
"long_description": "K1d8WD8U8G",
"parking": "No",
"wifi": "Yes",
"pet_friendly": "No",
"created_at": "2019-03-16 17:46:37",
"updated_at": "2019-03-30 09:14:57"
},
"title": "Macedonia Palace"
}





return [
'room' => $room,
'title' => $room->name,
];

KgfLikia
Автор

can i get your social media contact?, i want to ask you something urgent, I am very troubled, and I will be very happy if you want to help me, Thank you for making this video before,

anythbutyouuu