HUGE NEW FEATURE: API Resources (14/14) - Laravel 5.5 New Features

  Рет қаралды 43,514

DevMarketer

DevMarketer

Күн бұрын

Пікірлер: 106
@Osteele
@Osteele 7 жыл бұрын
Sat through all 14 episodes and, as always, your time and assistance is greatly appreciated. Thank you
@7197055
@7197055 6 жыл бұрын
I am new in laravel and going to start build APIs and have learnt lots of things from you. Thanks a lot
@DodaGarcia
@DodaGarcia 4 жыл бұрын
Your teaching is very thorough!! Thank you for this video.
@sokhaitrey9211
@sokhaitrey9211 6 жыл бұрын
Best explain. Please make the video that cover all the advance concept of Laravel. Thank you
@cristalmen9104
@cristalmen9104 5 жыл бұрын
Thank you so much for your vids! One of the most powerful Laravel channels in youtube. Each video in one breath!
@CODINGISEASY
@CODINGISEASY 5 жыл бұрын
he inspired me to create a channel :P
@penruxtechnology142
@penruxtechnology142 7 жыл бұрын
Maaaan.... this laravel series is awesome... keep up with the good work... love the format of your videos...
@taloto07
@taloto07 7 жыл бұрын
Hi Alex! Great video. Keep it up. Can you do API authentication and authorization?
@MrGeneticLizard
@MrGeneticLizard 6 жыл бұрын
Use Laravel Passport! laravel.com/docs/5.7/passport
@cristianmerli5050
@cristianmerli5050 5 жыл бұрын
I am used to use DTOs (to hide or include extra fields). Are resources the way to go now? The difference I guess is that with DTOs the extra fields are included in the same object, while with resources you have "data" and extra fields outside of it.
@King_Eke
@King_Eke 6 жыл бұрын
This is great, can you make a video of how we can use this to do CRUD functions with the API ? making sure it also checks that it's the admin that's logged in or what not. Thanks
@ozgirl
@ozgirl 7 жыл бұрын
Great videos! Thank you so much for the time and effort Alex!
@daledurham3048
@daledurham3048 6 жыл бұрын
Not sure if something changed or if it's a bug, but when pagination is added, the collection goes back to using the full model (unless overriden on the collection). I noticed yours did not, but mine did.
@afolabisamuel6992
@afolabisamuel6992 4 жыл бұрын
Awesome and Great Tutorial, Thumbs up.
@sumitsharma-us2sl
@sumitsharma-us2sl 7 жыл бұрын
pretty longer as per regular videos but lots of stuff to cover Thanks for making a great video
@TristanBailey
@TristanBailey 7 жыл бұрын
round about 20mins head exploded with reduced effort to now do this. Looks a handy new to paginate resource collection feature.
@haroldpepete
@haroldpepete 4 жыл бұрын
You're the man my friend, if you launch for president, count with my vote
@bloggervista
@bloggervista 7 жыл бұрын
Hi thanks :) Been following this series. Thanks for all videos :) I guess now its turn for build and advanced blog cms right?
@qcasares
@qcasares 6 жыл бұрын
Excellent​, enthusiastic and insightful.
@nerguibaatarn7572
@nerguibaatarn7572 7 жыл бұрын
Thank you for all series
@md.shafayatulhaque6273
@md.shafayatulhaque6273 6 жыл бұрын
Thanks Mr. Alex
@lserranoit
@lserranoit 4 жыл бұрын
Hello, it can be used to send programmer message to the front for post or put request. To send warnings or error messages?
@fahimriaz4680
@fahimriaz4680 5 жыл бұрын
Thanks Alex your the best .
@himak21
@himak21 6 жыл бұрын
Very great, useful videos. Great Jobs!! See you next video ;)
@talihaarif9544
@talihaarif9544 3 жыл бұрын
Inside a for loop calling the api resource and after returning data from resource pushing in an array. And return that array from resource. sometime it does not call the resource or sometime it call more than required times. How to solve this?
@Battlestad
@Battlestad 5 жыл бұрын
Hi. I'm quite new to Laravel. Why is it wrong to just format the data directly in the controller? I dont really understand why we need a new class just for that purpose
@أسامةسلامة-ع1ف
@أسامةسلامة-ع1ف 6 жыл бұрын
..hi ..i have problem when using paginate .when using resource meta and links not show ??
@onlineenergy7151
@onlineenergy7151 4 жыл бұрын
I love u and u r talking.... May god bless u
@ShivarajRH
@ShivarajRH 6 жыл бұрын
Very frequently used keywords are STATUS, with value "success" or "error", with the same level of "data".
@eissa6443
@eissa6443 5 жыл бұрын
Thank you , you saved me a lot of time.
@437manoj
@437manoj 3 жыл бұрын
Excellent
@krzysztofjabonski5572
@krzysztofjabonski5572 6 жыл бұрын
Hi Alex! I know it's been a while since you uploaded this video, but I have one little question. Why are you using web route? Laravel has file called api.php in routes folder and I wonder which one should I use? Can you explain it, please?
@stephenmccallister967
@stephenmccallister967 7 жыл бұрын
Thanks for making the videos. I am a beginning freelancer and I am in the process of learning laravel and I find your videos very helpful. Any advice on getting started learning laravel?
@CODINGISEASY
@CODINGISEASY 5 жыл бұрын
do you need any help?
@nenadfemic861
@nenadfemic861 7 жыл бұрын
best educator
@vukasinzurzevic4206
@vukasinzurzevic4206 7 жыл бұрын
GREAT FEATURE! you are good as always, I have one question for you Alex. What is your opinion about Laravel's future? Is popularity of this framework growing, how long is gonna be 'live'? Tnx
@JacurtisTutorials
@JacurtisTutorials 7 жыл бұрын
Laravel is stronger then ever and growing faster every day. I am seeing large companies start to adopt Laravel now because they finally feel like it is stable enough to rely on. The LTS releases help a lot with larger scale adoption as well. PHP has stood the test of time and people continue to come back to it as a reliable way to write code for the web. So having a truly great framework like this in PHP helps a lot. PHP suffered from having way too many frameworks before, and every framework had its own unique purpose. Most frameworks didn't last long, but Laravel has grown like no other framework ive seen in PHP. I really think it is going to grow to the strength of Ruby on Rails. I feel very confident about it. Other technologies i would keep an eye on are using front-end JS frameworks paired with backend APIs (think Vue.js/Angular/React paired with Node.js/Laravel/Lumen backends). I am seeing a lot of development move this direction. Not forgetting server side frameworks like Laravel, but using them for the backend and server side while relying more heavily on JS frameworks like Angular, Vue, and React for the frontend. Another growing trend which I have videos planned for is going serverless. This is especially good to complimenting extremely large projects or overtaking very small projects. This allows services like AWS or Microsoft Azure to run scripts on demand so that instead of keeping a server running 24/7 to handle requests, you just write a script and host it on a serverless platform like AWS Lambda. Of course serverless computing pairs very well with the JS frameworks i mentioned above, cutting our server side. But we are seeing really large companies like AirBnB and Uber combining serverless for microservices and server-side frameworks for the bulk of their backend models and controllers.
@vukasinzurzevic4206
@vukasinzurzevic4206 7 жыл бұрын
Thank you for this comment Alex, Laravel is my first love and I had some projects where I used Laravel for server side and AngularJS for frontend as you said...it's good combination. Also I am glad to see that Laravel still growing and I think it will be great if you do in future some tutorials where you will use Laravel and AngularJS :)
@mostafakawsarlive8574
@mostafakawsarlive8574 7 жыл бұрын
Thank you jacurtis brother.
@quyettv404
@quyettv404 6 жыл бұрын
hi alex, can you compare API resource with Transformer lib. I think they have the same result. Thank you
@JenniferJames-gj4ol
@JenniferJames-gj4ol 6 жыл бұрын
love ur efforts
@paitrex
@paitrex 7 жыл бұрын
Why should we use resources instead of create function in models? How to display hidden values ?
@jonathanespinosamtz
@jonathanespinosamtz 7 жыл бұрын
Hi @DevMarketer I have problems with the relations, if I put only the relation: $this->relation is working, but if I do not want to get all the colums is giving me error, example: $this->relation->id, this return me that Property [id] does not exist on this collection instance. Can you help me? Thank you
@justincv
@justincv 7 жыл бұрын
$this->relation()->id
@stefanosgiannakis7151
@stefanosgiannakis7151 7 жыл бұрын
Very helpfull '' thanks ! I will be glad if you teach us how to "consume" api's using laravel
@prabhat2k15
@prabhat2k15 7 жыл бұрын
What if i dont have a foreign_key ? How will i relate other table?
@sunaaldua25
@sunaaldua25 6 жыл бұрын
thanku alex for the video... i wanted to ask what if we now have to integrate the api's with a view(blade file)? how can we do it? thanku in advance
@AavinSeth
@AavinSeth 5 жыл бұрын
In eloquent toJson() how do i change my key name and customized my data in controller?
@winwinsp
@winwinsp 4 жыл бұрын
Hello Can I send full $user record like return ['user' => $this], please advise. I am getting error like recursive ...
@bernardchisumo4054
@bernardchisumo4054 7 жыл бұрын
Thank you very much for a nice tutorial . I would like to request a tutorials for the following packages Cashier Envoy Horizon Passport Scout Socialite if u have a time
@roberto9369
@roberto9369 6 жыл бұрын
just what i need. thanks man
@mohamedmohiy
@mohamedmohiy 7 жыл бұрын
thanks for the video, i have a question, what if i want to make many formats for the same resource?
@thegabzboy
@thegabzboy 7 жыл бұрын
So would this replace Fractal Transformers?
@JacurtisTutorials
@JacurtisTutorials 7 жыл бұрын
Yes exactly. This replaces Fractal.
@thegabzboy
@thegabzboy 7 жыл бұрын
Cool...one less package to install
@ryan.aquino
@ryan.aquino 7 жыл бұрын
Make a tutorial on a angular 4 as frontend and laravel as backend plss :))!that would be a great example project for apo requests
@roduankd
@roduankd 7 жыл бұрын
is it useful when I use ajax request in my app(meaning is it better to use json and ajax to get my data from the Controllers) ?? cuz I was suffering with json and csrf and couldn't solve it till now!! really upsetting I really hope to undersand it more in the "Curtis" way and Thank u for ur efforts that u ve made in the series it was really helpful for me ;)
@SilconOne
@SilconOne 7 жыл бұрын
Hey Alex Great work bud. Interest on a tutorial on Cashier and Stripe Subscriptions if you have the time THX.
@abhishekjain9037
@abhishekjain9037 7 жыл бұрын
Thanks Alex...
@foysalfoysal4304
@foysalfoysal4304 7 жыл бұрын
Nice one. Go ahead.
@ts-nq7bo
@ts-nq7bo 6 жыл бұрын
Can you please make a tutorial Angular js as a frontend and laravel backend
@arvind85ful
@arvind85ful 7 жыл бұрын
Hi, I want to create post request api in laravel.Please guide me..
@baseerx
@baseerx 6 жыл бұрын
Can you please make a video series on frontend VueJs use with laravel as framework,tutorials on vuejs are custom.
@jboxy
@jboxy 6 жыл бұрын
What's a micro API in a monolithic framework?
@RostyslavShynlov
@RostyslavShynlov 6 жыл бұрын
As always u amazing. It's a pity what you disappear from youtube
@CODINGISEASY
@CODINGISEASY 5 жыл бұрын
Im looking for laravel video ideas can I make you one?
@RostyslavShynlov
@RostyslavShynlov 5 жыл бұрын
​@@CODINGISEASY as i know, rest full api is good idea for example laravel php its backend with implemented rest service for messages (todo list etc) on frontend you have vue or react for CRUD its only my opinion
@CODINGISEASY
@CODINGISEASY 5 жыл бұрын
I will make a video on it! @@RostyslavShynlov
@mvishalshukla007
@mvishalshukla007 7 жыл бұрын
hi can u please make video on how to enable cors in laravel and about headers
@neeleshkrishna5580
@neeleshkrishna5580 4 жыл бұрын
Hello buddy i just want to change my api url like /api/customer/1 customer is an endpoint and 1 is id of the customer but i want /api/customer/jon where jon is name can you suggest me how can i do that?
@tornikemenabde9188
@tornikemenabde9188 6 жыл бұрын
Sorry for beginner question but why we can't just return this JSON data directly from the controller without API resource? P.S good tutorials thanks for the channel i learned lot from you
@CarlosAlbertoBrasil
@CarlosAlbertoBrasil 5 жыл бұрын
How can I sort the data?
@ljka
@ljka 6 жыл бұрын
Thank you :)
@shekhsaifuddin1353
@shekhsaifuddin1353 5 жыл бұрын
Why are you not create new videos.? Bro..😢😢 miss you
@xseman
@xseman 6 жыл бұрын
22:20, well that doesn't work, but call to the another collection works. Great video tho :)
@myohtet319
@myohtet319 6 жыл бұрын
Thank
@tornikemenabde9188
@tornikemenabde9188 7 жыл бұрын
why we are saying return NEW userResource, we are not creating we just return existing user can someone explain why we need new?
@Mcakmakali
@Mcakmakali 6 жыл бұрын
I have such a problem :( Command "make:resource" is not defined.
@CODINGISEASY
@CODINGISEASY 5 жыл бұрын
it is php artisan make:resource ResourceName
@baseerkahn9561
@baseerkahn9561 6 жыл бұрын
Sir,I have a question, if i hit resource controller URI using c++,will it return data in json formate to c++ variable?
@jiansu
@jiansu 6 жыл бұрын
not sure what u mean by using C++ this is PHP. If your C++ app hit the PHP backend what you get is JSON response, Doesn't matter if u r using C++ or C# or Java app to consume it. by the end of day you need to parse json objects
@cromartie1984
@cromartie1984 7 жыл бұрын
How does you json appears as json, mine does not
@JacurtisTutorials
@JacurtisTutorials 7 жыл бұрын
Chrome extension. Download here: chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc
@peterm.souzajr.2112
@peterm.souzajr.2112 7 жыл бұрын
so cool, basically eliminates the need for me having to have learned 5 languages....
@anshuverma1182
@anshuverma1182 7 жыл бұрын
php artisan make:resource Product this command is not working in laravel 5.5
@CODINGISEASY
@CODINGISEASY 5 жыл бұрын
resources were introduced in later versions
@pooriahonarmand111
@pooriahonarmand111 5 жыл бұрын
Thanks still in 2019
@_the_one_1
@_the_one_1 7 жыл бұрын
Hey you are awesome and you know that.Thank you very much for these clear and good understanding free tutorials. But i BEG you!!!Build something great with Laravel & VueJS.Please ?!!? It is the most searchable programming topic. You'll get many thanks for that...pleeaseee
@MrAKGarg007
@MrAKGarg007 7 жыл бұрын
Hi guys, I am new to Laravel, Can any body guide me, Which version I have to start from ?
@CODINGISEASY
@CODINGISEASY 5 жыл бұрын
I have a beginner setup guide
@arvinkenndelossantos7753
@arvinkenndelossantos7753 6 жыл бұрын
You just saved me from learning Fractal
@jeanandrewfuentes2995
@jeanandrewfuentes2995 6 жыл бұрын
Make A tutorial On Laravel as API Web Service layer to Web/Android/iOs
@mohammadirvan7308
@mohammadirvan7308 4 жыл бұрын
how about many to many relationship
@shahidb7814
@shahidb7814 7 жыл бұрын
Dear Honorable Sir, Could you please tell me how can I send Username and Password to that User's mail after Registration New User in Laravel ? Regards Masum
@Kliamframe
@Kliamframe 6 жыл бұрын
Look at me! I'm watching this video WITHOUT adblock
@DerkJanSpeelman
@DerkJanSpeelman 7 жыл бұрын
don't name your Resource class classNameResource! Name it className only. (like in the video). Because otherwise it's collection won't inherit the return value of the toArray function!
@johndavedecano2438
@johndavedecano2438 7 жыл бұрын
LODI!!!
@limitlesskode
@limitlesskode 3 жыл бұрын
Is it my eyes or do you look like young Elon @DevMarketer
@thatsenam9183
@thatsenam9183 3 жыл бұрын
Mini Elon Mask
@adamsonvispo7915
@adamsonvispo7915 6 жыл бұрын
huge thanks elon musk! please teach us how to hack NASA using html
@timomuller2162
@timomuller2162 6 жыл бұрын
You are smarter than you look :P just kidding :)
@harunthuo2610
@harunthuo2610 5 жыл бұрын
you're just stupid. come to another man's channel and behave like a 6 year old
@lawfirm3843
@lawfirm3843 6 жыл бұрын
talk a lot, seems like reading a book.
@CODINGISEASY
@CODINGISEASY 5 жыл бұрын
:P
@sumitsrivastava9184
@sumitsrivastava9184 4 жыл бұрын
Thank you :)
Laravel 5.4 - 5.5 Upgrade Guide (Detailed)
53:46
DevMarketer
Рет қаралды 10 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
[Live-Coding] Refactor Laravel Controller to be Much Shorter
14:55
Laravel Daily
Рет қаралды 78 М.
Laravel Advanced 2021 - Jobs, Queues & Events Part 1
17:23
Coder's Tape
Рет қаралды 68 М.
The Pros and Cons of Laravel Livewire
20:16
Josh Cirre
Рет қаралды 10 М.
From Laravel Blade to Vue.js + API [Live-coding Example]
22:28
Laravel Daily
Рет қаралды 169 М.
Creating a Laravel API
59:10
DigitalOcean
Рет қаралды 94 М.
Laravel 8 REST API With Sanctum Authentication
54:13
Traversy Media
Рет қаралды 552 М.