Тёмный
No video :(

How to Build API Resources | Laravel API Course | Learn Laravel API | Laravel API Tutorial 

Code With Dary
Подписаться 61 тыс.
Просмотров 20 тыс.
50% 1

In this video we will be creating a Laravel API Resource for our typical CRUD actions - Learn how to create APIs in Laravel for its real-time communication support.
📚 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: www.udemy.com/...
📲 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. Please read the description before booking: calendly.com/c...
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter...
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger....
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithd...
- Newsletter: newsletter.cod...
- Patreon: www.patreon.co...
- GitHub: github.com/cod...
Want to learn more?
- Courses: / @codewithdary
#laravel #laravel8 #laravelapi #api #crud #resources #apiresource

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@codewithdary
@codewithdary 2 года назад
LETS CONNECT THROUGH INSTAGRAM. www.Instagram.com/codewithdary
@lethaldaku1
@lethaldaku1 3 года назад
i am new to laravel. i have watched all videos till now and practicing. You are an amazing instructor. Thank you for creating these videos.
@codewithdary
@codewithdary 3 года назад
Hi Sebastian. Thank you so much for your kind comment!
@spotifylogin8742
@spotifylogin8742 3 года назад
First time to see you videos and the first impact is that you are a very good teacher. Definitively I will subscribe and see your videos on daily basics.
@codewithdary
@codewithdary 3 года назад
Awesome, thank you!
@Bebe-sg4mg
@Bebe-sg4mg 3 года назад
Thank you sweet Dary..hope next videos comes soon..so excited..you are graet..i wish you all the best
@codewithdary
@codewithdary 3 года назад
Thank you Bayan! I'll do my best to satisfy you! :D
@Bebe-sg4mg
@Bebe-sg4mg 3 года назад
@@codewithdary you already did..thanks for your kindness
@tacanda6479
@tacanda6479 2 года назад
The best teacher on youtube
@codewithdary
@codewithdary 2 года назад
Thank you so much :)
@dev_jeongdaeri
@dev_jeongdaeri 3 года назад
Always thanks!!!❤️
@codewithdary
@codewithdary 3 года назад
You are so welcome!
@Wolfgang190
@Wolfgang190 3 года назад
Hey! First, thank you again for the video! I have a question about the "attributes" field ins JSON. Does rest have such a specification? Where I could look at her? Can u give a link?
@codewithdary
@codewithdary 3 года назад
Hi! This link might be helpful for you: jsonapi.org/format/#document-resource-object-attributes Not PHP/Laravel related but the concept is the same.
@Wolfgang190
@Wolfgang190 3 года назад
@@codewithdary thx)
@BharadwajRbwaj95
@BharadwajRbwaj95 3 года назад
Hi, Dary. Could you please let me know how we are able to find the author just by passing the ID. Are we not required to run the WHERE command using Eloquent? Thanks.
@codewithdary
@codewithdary 3 года назад
Are you familiar with relationships? Otherwise I recommend you to watch this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ktv8LF-zVZ4.html
@BharadwajRbwaj95
@BharadwajRbwaj95 3 года назад
@@codewithdary It happens because of Route Model Binding. Docs: laravel.com/docs/8.x/routing#route-model-binding Thanks.
@martinm5433
@martinm5433 Год назад
Why did you mean the the controller name in singular is not the best practice?
@codewithdary
@codewithdary Год назад
According to Laravel controllers should be plural :)
@martinm5433
@martinm5433 Год назад
@@codewithdary But why?
@maykelesser
@maykelesser 2 года назад
Dary, im trying to run my request, as u show in 10:35, but i got an error on response: Target class [AuthorsController] does not exist. I've renamed the AuthorController to AuthorsController, as u said, and changed the class name as well. What im doing wrong?
@maykelesser
@maykelesser 2 года назад
ah, i got it. nevermind. we need to declare use App\Http\Controllers\AuthorsController on top of the api.php file. I guess it is not mentioned on this video, but thanks to the laravel for beginners playlist, i found a solution! heheheh
@codewithdary
@codewithdary 2 года назад
@@maykelesser yes I started pulling it in automatically because I’ve mentioned it in a lot of tutorials haha!
@blessed-favored
@blessed-favored 2 года назад
I enjoyed the content.
@codewithdary
@codewithdary 2 года назад
Thank you Harizon!
@blessed-favored
@blessed-favored 2 года назад
@@codewithdary Thank you too.
@mohamedal-qadeery6530
@mohamedal-qadeery6530 3 года назад
what about the status code ? how to deal with it
@codewithdary
@codewithdary 3 года назад
Which one?
@mohamedal-qadeery6530
@mohamedal-qadeery6530 3 года назад
@@codewithdary should we add the status code with the json data in controller ?
@jobayer4650
@jobayer4650 Год назад
Sir, Awesome videos. How to pass blongtomeny relational data?
@bethelbobmagallano5576
@bethelbobmagallano5576 3 года назад
i do have a question, i have a problem in my database it said that you are using the default name database and when i replaced the default name it says database not found.
@codewithdary
@codewithdary 3 года назад
Can you copy paste the error message?
@bethelbobmagallano5576
@bethelbobmagallano5576 3 года назад
@@codewithdary Target Class [AuthorsController] does not exist
@bethelbobmagallano5576
@bethelbobmagallano5576 3 года назад
@@codewithdary i solve the issue in my database but my problem now is the authorscontroller does not exist
@SasiprabaharanS
@SasiprabaharanS 3 года назад
Awesome man
@codewithdary
@codewithdary 3 года назад
Thanks!
@ibrahimanimasahun9431
@ibrahimanimasahun9431 3 года назад
thanks
@codewithdary
@codewithdary 3 года назад
You're welcome!
@abbasrahim723
@abbasrahim723 Год назад
well i got the access token and after i ran for an author, i got the error 500 with the message ( "message": "Auth guard [api] is not defined.", "exception": "InvalidArgumentException", "file": ............ ), then i fixed this issue by adding 'guards'=>[ here we have 'api' etc, which is working fine, and i get the author details], but now when i run for another access token, it agian gives 500 error with the message ( "message": "Auth guard [web] is not defined.", "exception": "InvalidArgumentException", "file":............ ) ,,, I have seached it at many places,, but couldn't solve it,,,, Please help me with it to solve.... Thanks to everyone in advance
@matinlh644
@matinlh644 3 года назад
Man, you're handsome 😍❤
@vinhvo4816
@vinhvo4816 3 года назад
at 10:48s error: Route[login] is not defined
@nizz4m
@nizz4m 3 года назад
I'm also facing the same issue. Have you found any solution ?
@codewithdary
@codewithdary 3 года назад
You're trying to redirect to a named route whose name is login, but you have no routes with that name:
@rattasart5569
@rattasart5569 2 года назад
can you solve the problem i met too.
@vinhvo4816
@vinhvo4816 2 года назад
@@rattasart5569 you try answer above
@haykazvoskanyan7176
@haykazvoskanyan7176 2 года назад
You must dublicate the 'test request' where you have stored an authorized user otherwise you will have to fill in the bearer token and the other stuff, just click on test request then on tab right click and dublicate tab then rename it as Author and go ahead it should work.
@Ramziddin_Rustamovv
@Ramziddin_Rustamovv 2 года назад
👍🤝
@codewithdary
@codewithdary 2 года назад
🤙🏽
Далее
Construction site video BEST.99
01:00
Просмотров 349 тыс.
Scammers PANIC After I Hack Their Live CCTV Cameras!
23:20
Creating a Laravel API
59:10
Просмотров 93 тыс.
Laravel API+Vue Code Review: 12 Things I've Noticed
22:31
Construction site video BEST.99
01:00
Просмотров 349 тыс.