How to Build a REST API With Laravel: PHP Full Course

  Рет қаралды 277,369

Envato Tuts+

Envato Tuts+

Күн бұрын

Пікірлер
@themindfulway876
@themindfulway876 9 ай бұрын
This guy sounds like a mix between documentary and a flight instructor. Awesome
@dieudonneoutchi8500
@dieudonneoutchi8500 8 ай бұрын
Exactly 😆!! that's crazy man !! I really appreciated ... Thk you
@nelsonbaluyot6882
@nelsonbaluyot6882 2 жыл бұрын
Dude this is the best turorial I've watched so far
@stevehoober3712
@stevehoober3712 Жыл бұрын
Coming from MERN, this was the best video I needed to grasp everything. Thanks lot Jeremy
@envatotuts
@envatotuts Жыл бұрын
Glad you enjoyed it!
@nikalairom
@nikalairom Жыл бұрын
Great course and even greater way of explaining how to do it. Man, it takes a great amount of skill to translate something a bit complicated in such a simple way. Great work!
@envatotuts
@envatotuts Жыл бұрын
Glad you enjoyed it!
@SOFTSOLUTIONS-p5q
@SOFTSOLUTIONS-p5q Жыл бұрын
@@envatotuts How to validate if customer exists when saving invoices?
@mrbande32
@mrbande32 Жыл бұрын
True
@MrFixIt-le7rs
@MrFixIt-le7rs Жыл бұрын
Best Tutor, his teaching way gives you confident to start any project.
@DiogoGaming2
@DiogoGaming2 9 ай бұрын
One of the best tutorials ever, you should make a lot more, very well explained and clear to understand
@keyvanakbarzadeh
@keyvanakbarzadeh 2 ай бұрын
its been a million times that i have came back to this video because all its magnificent things it has to offer, great job❤
@envatotuts
@envatotuts 2 ай бұрын
Thank you so much 😀💚
@juanchongo77
@juanchongo77 Жыл бұрын
It is the best course i've never seen, Thank u so much!. Greetings from Venezuela
@saiful-here
@saiful-here Жыл бұрын
It was such a fantastic course to enjoy and learn. I had a lot of confusion about API development and even don't have such good ideas in case of API development. Thank you for this course.
@HTDChannel
@HTDChannel Жыл бұрын
This is one of the greatest tutorials of all time, exactly what you need to know no extra bs
@ProdJAN-hh9lv
@ProdJAN-hh9lv 4 ай бұрын
Excellent short course. However, this needs to be updated, hope you guys would work on this one again :D
@techloading3217
@techloading3217 9 ай бұрын
Best tutorial ever watched. keep it up. love your work.
@oguzhansisman9322
@oguzhansisman9322 Жыл бұрын
Im really glad that i found this channel. I hope i can watch all your videos. Thank you!
@envatotuts
@envatotuts Жыл бұрын
I hope so too! But, there are a lot of videos!
@al-morshedtours2161
@al-morshedtours2161 Жыл бұрын
Mindblowing , the way how he illustrate and explain things
@JailadinShaik8897
@JailadinShaik8897 Ай бұрын
Absolutely amazing content ! This is by far the most helpful Laravel content I’ve come across. The explanation is clear and thorough, and I got to know multiple concepts from this one video. Really appreciate the effort you put into making this, thanks a lot! Waiting for more videos on laravel like this.
@envatotuts
@envatotuts Ай бұрын
Hi! Thanks so much for the kind words! 😊 We're so glad the video was helpful to you. We'll definitely be sharing more Laravel content soon, so stay tuned for that! Cheers!
@mktNo1
@mktNo1 2 жыл бұрын
I hadn't done with Laravel for a long time. It's really helpful. Thank you for your video.
@envatotuts
@envatotuts 2 жыл бұрын
Glad it was helpful!
@trungphanduc6729
@trungphanduc6729 Жыл бұрын
Ohhh VietNamese...
@mackshonayi943
@mackshonayi943 9 ай бұрын
This is a great course, excellent teacher. Very clear explanations!
@dotdotdotdotdash
@dotdotdotdotdash Жыл бұрын
This video saved my life, props to the guy 👊👊
@bhardwaj_abhi3421
@bhardwaj_abhi3421 Жыл бұрын
one of the best video on rest api
@envatotuts
@envatotuts Жыл бұрын
Thank you so much 😀
@ilyesmilyesm2576
@ilyesmilyesm2576 10 ай бұрын
best tutorial in planet earth, period
@mayboy501
@mayboy501 8 ай бұрын
As far as I know, Envato is talking about design. So, when I see this video, I'm little doubtful. But, surprisingly the explanation in this video is amazing and complete. For example, the versioning of API which is crucial in development but not discussed very often in another tutorial. Why you make a programming tutorial, Envato? Hahaha. Btw, thank you
@alnamaaengineering2731
@alnamaaengineering2731 2 жыл бұрын
can't recommend your tutorial enough, thanks a lot
@envatotuts
@envatotuts 2 жыл бұрын
Glad to hear that
@locrien8888
@locrien8888 8 ай бұрын
Please note for non-windows users you must use a forward slash rather than a backslash when using artisan make:resource folder/resourcename
@hgrafa
@hgrafa 8 ай бұрын
Best and clear tutorial so far!
@gorilla8526
@gorilla8526 7 ай бұрын
由浅入深,由表及里,层层递进。非常值得推荐的Laravel视频!👍
@artisciencedev1203
@artisciencedev1203 11 ай бұрын
We love you Envato Tuts developer!
@remanonet7044
@remanonet7044 Жыл бұрын
Many Thanks, It was a pleasure to follow you in this tutorial
@NeilMyatt
@NeilMyatt 5 ай бұрын
This is great but needs updating for Laravel 11.x - maybe just adding some notes in the description would be enough to help people. There are quite a few changes mean that following this tutorial won't work for a lot of people. Most notably that api routes are not installed OOB anymore, so you need to need to run php artisan install:api
@matmitcheilando7266
@matmitcheilando7266 11 ай бұрын
It helps me a lot more than anything so far.... Thank you sensei
@kurdev101
@kurdev101 Жыл бұрын
Thanks a lot, the first time I thought this video did not help me. But this video did help me a lot. Thank you again.
@pramodsawant9687
@pramodsawant9687 Жыл бұрын
One of the great video I have seen 💓I loved your voice 💓
@envatotuts
@envatotuts Жыл бұрын
Thank you so much 😀
@dachshund_jow
@dachshund_jow 2 жыл бұрын
19:22 if don't see Route's data, to be seen 404 not found, Enter command "php artisan serve" in your project folder.
@aribiali3574
@aribiali3574 2 жыл бұрын
Would u make a tutorial about react +laravel +authontification and thnx❤
@apnachannal9129
@apnachannal9129 2 жыл бұрын
BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY MUCH!
@envatotuts
@envatotuts 2 жыл бұрын
You are welcome!
@remanonet7044
@remanonet7044 2 жыл бұрын
47:30 . Target class [App\Http\Controllers\Api\V1\Request] does not exist. what is the problem please ?
@easyscript549
@easyscript549 2 жыл бұрын
my working when put this --> use Illuminate\Http\Request; at top of customercontroller.php below it namespace, before the rest of 'use'
@abdullohsharipov3108
@abdullohsharipov3108 2 жыл бұрын
try 'composer dump-autoload --optimize' in your terminal.
@AbiodunSam
@AbiodunSam 2 жыл бұрын
What a nice tutotial - I like it. 44:43 While implementing filter transform, I didn't understand how "[gt]" and the likes were passed and where the $oprators arrays were gotten. Please, I need clearifcation.
@bruhisbruh000
@bruhisbruh000 Жыл бұрын
Hi loved the tutorial just one question at 27:00 you said anyone using the API would expect camelcase , but i could stg every single third party API i used even from big companies like (google/facebook etc..) use the same naming conventions as SQL in their responses ( postal_code for example) , so which one is right lol
@ogenteumana2
@ogenteumana2 Ай бұрын
Thanks for the tutorial. Note: "php artisan install:api" command creates the routes/api.php file for Laravel 11.
@madaminmj8462
@madaminmj8462 Жыл бұрын
trust me , this is better even paid course
@kosticnemanja1914
@kosticnemanja1914 2 жыл бұрын
in my humble opinion, your voice is better than Morgan Freeman
@Hexdy
@Hexdy Жыл бұрын
I've come from Django, React and Vue, and hate with my soul php, BUT laravel seems quite entertaining and your video made it usable for a project of mine, thank you!
@franciscoastoreca3110
@franciscoastoreca3110 8 ай бұрын
I love your voice for learning
@ruzindanajules7040
@ruzindanajules7040 2 жыл бұрын
sir at what point did you define the method hasInvoices in the customerSeeder class .My ide flags it as undefined method.thank you
@MegaZombie0001
@MegaZombie0001 Жыл бұрын
I think Laravel creates that because of the relationship 'hasMany'. Laravel is smart enough (and abstracts lots of things) to understand customer class has many invoices so it says I should create function called hasInvoices. I am not sure but I think this is the case because it runs without problem
@alfatech924
@alfatech924 2 жыл бұрын
Great envato tuts team we are waiting for this course premiere ...
@anarbairam
@anarbairam 3 ай бұрын
awesome teaching skills
@envatotuts
@envatotuts 3 ай бұрын
Thanks a ton! 😊 We’re thrilled you think so. Cheers!
@phpisdead
@phpisdead 2 жыл бұрын
Thank you , next laravel and vue project please
@borakayalar
@borakayalar Жыл бұрын
Perfect course! Many Thanks
@medtalks6146
@medtalks6146 Жыл бұрын
hey , from where the hasInvoices() in the seeder came from does laravel know it automatically?
@collectorX
@collectorX 4 ай бұрын
yes due to the naming convention, laravel auto detects and does its magic. ofcoz the relationships have to be built
@bhedabipin9246
@bhedabipin9246 2 жыл бұрын
I got everything I needed to know in this one video. Thank you!!
@ITDevelopmentCafe
@ITDevelopmentCafe Жыл бұрын
Thank you for the very efficient course that you have explained in the simplest possible way.
@azad_agi
@azad_agi Жыл бұрын
Amazing Tutorial , Thank you so much
@envatotuts
@envatotuts Жыл бұрын
You are welcome!
@ridddlewrong
@ridddlewrong Жыл бұрын
can we have thу same readable api as this 25:36 but in chrom with some extension ?
@hsmyv
@hsmyv 2 жыл бұрын
All things worked but I have faced with error that 'General error: 1364 Field 'customer_id' doesn't have a default value' 01:23:04 implemented
@eugaleksandr
@eugaleksandr Жыл бұрын
Thanks for the video, very useful course! I have a small question, at 30:50 in the response results the current_page and last_page are not written in the Camel case, how can I fix this? I understand that Laravel returns this automatically, but I still want to put things in order.
@alvinchristianto-p2d
@alvinchristianto-p2d Жыл бұрын
great tutorial, however I found problem in 1:10:51 when using "protection", then changing to "protected"
@b.sgaming6870
@b.sgaming6870 2 жыл бұрын
very talented teacher - cheers
@envatotuts
@envatotuts 2 жыл бұрын
Glad you think so!
@flaterptech
@flaterptech Жыл бұрын
Thank You for this course, Its really helps, More knowledge to your brain bro
@reksihu
@reksihu 7 ай бұрын
Thank you for this video!
@osmelmdz
@osmelmdz 10 ай бұрын
gran video me ayudo a comprender demasiado varias partes del framework laravel y de la implementacion de sanctum
@juancamilovallejos8328
@juancamilovallejos8328 Жыл бұрын
Very good and useful tutorial Thanks!
@ousssika5359
@ousssika5359 11 ай бұрын
tanks for this tuto , i was abel to start my journy with laravel ,thanks a lot
@andrewmedvedev963
@andrewmedvedev963 Жыл бұрын
Wow thank you. Great tutorial. A lot of valuable information was given.
@envatotuts
@envatotuts Жыл бұрын
Glad it was helpful!
@Maen963
@Maen963 2 жыл бұрын
i wish my like button turns into 1000 likes button ! what a PRO tutorial
@ousssika5359
@ousssika5359 2 жыл бұрын
$adminToken = $user->createToken("admin-token", ["create", "update", "delete"]); it return form me tha the createToken method is not define on the user
@ChampionChapters
@ChampionChapters Жыл бұрын
Same here. Did you manage to find a solution?
@vladimir8036
@vladimir8036 Жыл бұрын
Instantiate variable $user like this: $user = User::where('email', $credentials['email'])->first(); It will return App\Models\User instance, which should have HasApiTokens trait.
@alexanderkrist95
@alexanderkrist95 Жыл бұрын
Amazing course
@gillesashley9314
@gillesashley9314 Жыл бұрын
I'm done with the entire course, enjoyed every second of it and I'm gonna use it as reference in my upcoming projects. But Sir I have a request, could you please make a video on how to integrate Swagger docs into a laravel api? There are a couple of resources around, but most aren't helpful enough. Thank you.
@rescatado182
@rescatado182 Жыл бұрын
Great tutorials for thinking in advanced tips on build stronger API's. One thing, I come from LATAM, so my keyboard too, and my "not equal" symbol that it works is this: '!='
@davidedema8240
@davidedema8240 2 жыл бұрын
Wow. this is so easy to understand.
@iambsquare
@iambsquare 2 жыл бұрын
I love this, havan't come across this kind of tutorial (Very understandable)
@matthewlee-mu2kq
@matthewlee-mu2kq 7 ай бұрын
At 28:20 I had to add an extra '\' for Laravel to create the correct filename and sub-directory... php artisan make:resource V1\\CustomerResource
@ridddlewrong
@ridddlewrong Жыл бұрын
5:28 how you type "code ." and the editor opens up?
@HaritsRasyid
@HaritsRasyid 11 ай бұрын
you can setting in the VScode to open the VScode using terminal
@ahmedmahmoodhameed2585
@ahmedmahmoodhameed2585 7 ай бұрын
Great course. Is there a GitHub repository for this course?
@danuzonez
@danuzonez Жыл бұрын
Best of the best tutorial
@issamhousni4180
@issamhousni4180 Жыл бұрын
Great course ♥♥
@envatotuts
@envatotuts Жыл бұрын
Thank you! Cheers!
@nocopyrightmusic-kt8gv
@nocopyrightmusic-kt8gv 2 жыл бұрын
Thank you for explaining this thoroughly!
@envatotuts
@envatotuts 2 жыл бұрын
Glad it was helpful!
@jomsmario
@jomsmario 2 жыл бұрын
1:32:18 "message": "Class \"App\\Http\\Request\\V1BulkStoreInvoiceRequest\" does not exist", "exception": "ReflectionException" i got this error message anyone can help?
@lepystudio8974
@lepystudio8974 Жыл бұрын
check naming, class Declaration. I had the same error because I forgot to change the class from StoreCustomerRequest to BulkStoreInvoiceRequest
@ycheing
@ycheing Жыл бұрын
your \ is missing
@delvinnj-vh7gf
@delvinnj-vh7gf 6 ай бұрын
Nice course, Could please make a video about graphQL in Laravel ?
@blazinghelmet3645
@blazinghelmet3645 2 жыл бұрын
Super awesome tutorial 🖤🖤 But in 1:32:13 I'm not getting the invoices of a single customer but I'm still getting the invoices when i call for all the customers How can I fix it I did everything just like the he did
@paollarce5137
@paollarce5137 Жыл бұрын
What extension for VSC are you using ?
@muhammadumarsotvoldiev8768
@muhammadumarsotvoldiev8768 Жыл бұрын
Thank you very much! Very helpful
@benjaminvenezia1944
@benjaminvenezia1944 Жыл бұрын
A great tutorial to follow with senior developer tips, this is really excellent! ♥🍻
@envatotuts
@envatotuts Жыл бұрын
Glad it was helpful!
@covermaker8748
@covermaker8748 Жыл бұрын
Great course! I've learned a lot from you, thank you. For the bulk insert section, you could consider moving the logic for removing the 'customerId', 'billedDate', and 'paidDate' data from the controller to a protected function called 'passedValidation' in the BulkStoreInvoiceRequest.php . What do you think? So it would look like this: protected function passedValidation(){ $data = collect($this->toArray())->map(function($arr, $key){ return Arr::except($arr, ['customerId','billedDate', 'paidDate']); })->toArray(); $this->merge($data); }
@malikimoustapha4061
@malikimoustapha4061 7 ай бұрын
thank for this valuable tuto, My question is there another tuto example that shows how to consume thise rest API?
@DigitalHelpVault
@DigitalHelpVault 2 жыл бұрын
I have this issue please help: "message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'postalCode' in 'field list' (SQL: insert into `customers`, I did everything but my prepareForValidation() is not working.
@DigitalHelpVault
@DigitalHelpVault 2 жыл бұрын
sorted
@gieldewinter7068
@gieldewinter7068 2 жыл бұрын
Can you tell me pls how you solved it? I dont know how to solve
@TheYealoChannel
@TheYealoChannel 2 жыл бұрын
@@gieldewinter7068 Actual answer: postalCode in the $fillable array in the Customer model should actually be postal_code.
@vadimgerich9887
@vadimgerich9887 Жыл бұрын
fantastic video thank you so much 😍
@JakubAdamus1991
@JakubAdamus1991 Жыл бұрын
Great video, thanks a lot!
@aberindonximmond1231
@aberindonximmond1231 2 жыл бұрын
This was so helpful!! Thank you
@envatotuts
@envatotuts 2 жыл бұрын
Glad it was helpful!
@kurosshyu2621
@kurosshyu2621 Жыл бұрын
thank you and it's a great tut
@chulopapi812
@chulopapi812 Жыл бұрын
Thank you for the tutorial. I will look out for you other tutorials. Loved it
@emilebaelde
@emilebaelde 2 жыл бұрын
Great course but i have a question for you: How would you handle filtering on the relationship? For example, having products with translations but i only want to get the products which have English translations.
@vezzel1113
@vezzel1113 Жыл бұрын
could you make a more advanced tutorial this tutorial was really good.I learnt alot
@locrien8888
@locrien8888 8 ай бұрын
Great tutorial, it is really appreciated. What is your reasoning for CamelCase JSON rather than snake_casing? I see some people say it makes things easier for Java/C++/Python. Thoughts?
@ycheing
@ycheing Жыл бұрын
very good tutorial, thanks
@envatotuts
@envatotuts Жыл бұрын
Glad it was helpful!
@satishbangleshyd
@satishbangleshyd 2 жыл бұрын
cool tutorial, 100% works, +rep
@envatotuts
@envatotuts 2 жыл бұрын
Glad it helped
@ZephniStrife
@ZephniStrife Жыл бұрын
Absolutely love the video, also... love your vscode theme and icon set, could someone let me know what is being used here?
@thetheedesk
@thetheedesk 7 ай бұрын
I am using laragon, and i have problems to display the object on web browser, anyone would know how to fix it? (404 | page not found)
@DP-yv9tl
@DP-yv9tl 2 жыл бұрын
Great tutorial!
@envatotuts
@envatotuts 2 жыл бұрын
Thank you!
@IVOMOTV1986
@IVOMOTV1986 2 жыл бұрын
Looks a great course
@christiansosa5484
@christiansosa5484 Жыл бұрын
Thanks so much! rly great video and work. Much appreciated
@envatotuts
@envatotuts Жыл бұрын
Glad it helped!
@firefox0503
@firefox0503 Жыл бұрын
You are the best!
What’s Up with Laravel? It’s Everywhere, and Here’s Why!
6:22
APIs for Beginners - How to use an API (Full Course / Tutorial)
2:19:33
freeCodeCamp.org
Рет қаралды 4,4 МЛН
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Laravel SPA Authentication - setup and common mistakes
16:55
Laravel 11 Tutorial for Beginners - Laravel Crash Course (2024)
1:22:20
The Codeholic
Рет қаралды 229 М.
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 44 М.
The Honey Scam: Explained
10:53
Marques Brownlee
Рет қаралды 4 МЛН
Learn Functional Programming With JavaScript | FREE COURSE
1:33:17
Envato Tuts+
Рет қаралды 45 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,5 МЛН