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

Поделиться
HTML-код
  • Опубликовано: 29 янв 2025

Комментарии •

  • @themindfulway876
    @themindfulway876 10 месяцев назад +23

    This guy sounds like a mix between documentary and a flight instructor. Awesome

    • @dieudonneoutchi8500
      @dieudonneoutchi8500 9 месяцев назад

      Exactly 😆!! that's crazy man !! I really appreciated ... Thk you

  • @nelsonbaluyot6882
    @nelsonbaluyot6882 2 года назад +37

    Dude this is the best turorial I've watched so far

  • @stevehoober3712
    @stevehoober3712 Год назад +12

    Coming from MERN, this was the best video I needed to grasp everything. Thanks lot Jeremy

  • @keyvanakbarzadeh
    @keyvanakbarzadeh 3 месяца назад +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  3 месяца назад

      Thank you so much 😀💚

  • @DiogoGaming2
    @DiogoGaming2 10 месяцев назад +2

    One of the best tutorials ever, you should make a lot more, very well explained and clear to understand

  • @nikalairom
    @nikalairom Год назад +26

    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!

  • @MrFixIt-le7rs
    @MrFixIt-le7rs Год назад +4

    Best Tutor, his teaching way gives you confident to start any project.

  • @HTDChannel
    @HTDChannel Год назад +10

    This is one of the greatest tutorials of all time, exactly what you need to know no extra bs

  • @saiful-here
    @saiful-here Год назад +3

    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.

  • @juanchongo77
    @juanchongo77 Год назад +2

    It is the best course i've never seen, Thank u so much!. Greetings from Venezuela

  • @ProdJAN-hh9lv
    @ProdJAN-hh9lv 5 месяцев назад +1

    Excellent short course. However, this needs to be updated, hope you guys would work on this one again :D

  • @oguzhansisman9322
    @oguzhansisman9322 Год назад +1

    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 Год назад +2

    Mindblowing , the way how he illustrate and explain things

  • @techloading3217
    @techloading3217 10 месяцев назад +1

    Best tutorial ever watched. keep it up. love your work.

  • @mktNo1
    @mktNo1 2 года назад +2

    I hadn't done with Laravel for a long time. It's really helpful. Thank you for your video.

  • @dotdotdotdotdash
    @dotdotdotdotdash Год назад +1

    This video saved my life, props to the guy 👊👊

  • @JailadinShaik8897
    @JailadinShaik8897 2 месяца назад

    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  2 месяца назад +1

      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!

  • @gorilla8526
    @gorilla8526 8 месяцев назад

    由浅入深,由表及里,层层递进。非常值得推荐的Laravel视频!👍

  • @mackshonayi943
    @mackshonayi943 10 месяцев назад

    This is a great course, excellent teacher. Very clear explanations!

  • @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.

  • @mayboy501
    @mayboy501 9 месяцев назад +1

    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

  • @ilyesmilyesm2576
    @ilyesmilyesm2576 10 месяцев назад

    best tutorial in planet earth, period

  • @hgrafa
    @hgrafa 9 месяцев назад

    Best and clear tutorial so far!

  • @locrien8888
    @locrien8888 9 месяцев назад +4

    Please note for non-windows users you must use a forward slash rather than a backslash when using artisan make:resource folder/resourcename

  • @artisciencedev1203
    @artisciencedev1203 Год назад

    We love you Envato Tuts developer!

  • @matmitcheilando7266
    @matmitcheilando7266 Год назад

    It helps me a lot more than anything so far....
    Thank you sensei

  • @remanonet7044
    @remanonet7044 Год назад

    Many Thanks, It was a pleasure to follow you in this tutorial

  • @NeilMyatt
    @NeilMyatt 6 месяцев назад +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

  • @ogenteumana2
    @ogenteumana2 2 месяца назад +1

    Thanks for the tutorial.
    Note: "php artisan install:api" command creates the routes/api.php file for Laravel 11.

  • @alnamaaengineering2731
    @alnamaaengineering2731 2 года назад +2

    can't recommend your tutorial enough, thanks a lot

  • @bhardwaj_abhi3421
    @bhardwaj_abhi3421 Год назад +1

    one of the best video on rest api

  • @medtalks6146
    @medtalks6146 Год назад +2

    hey , from where the hasInvoices() in the seeder came from does laravel know it automatically?

    • @collectorX
      @collectorX 5 месяцев назад

      yes due to the naming convention, laravel auto detects and does its magic. ofcoz the relationships have to be built

  • @pramodsawant9687
    @pramodsawant9687 2 года назад

    One of the great video I have seen 💓I loved your voice 💓

    • @envatotuts
      @envatotuts  2 года назад +1

      Thank you so much 😀

  • @osmelmdz
    @osmelmdz 10 месяцев назад

    gran video me ayudo a comprender demasiado varias partes del framework laravel y de la implementacion de sanctum

  • @alfatech924
    @alfatech924 2 года назад

    Great envato tuts team we are waiting for this course premiere ...

  • @aribiali3574
    @aribiali3574 2 года назад +8

    Would u make a tutorial about react +laravel +authontification and thnx❤

  • @MikeStratton
    @MikeStratton 13 дней назад +1

    Awesome tutorial! Thank you!

  • @bruhisbruh000
    @bruhisbruh000 Год назад +1

    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

  • @ruzindanajules7040
    @ruzindanajules7040 2 года назад +4

    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

  • @ousssika5359
    @ousssika5359 Год назад

    tanks for this tuto , i was abel to start my journy with laravel ,thanks a lot

  • @dachshund_jow
    @dachshund_jow 2 года назад +3

    19:22 if don't see Route's data, to be seen 404 not found, Enter command "php artisan serve" in your project folder.

  • @kosticnemanja1914
    @kosticnemanja1914 2 года назад +1

    in my humble opinion, your voice is better than Morgan Freeman

  • @franciscoastoreca3110
    @franciscoastoreca3110 9 месяцев назад

    I love your voice for learning

  • @AbiodunSam
    @AbiodunSam 2 года назад +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.

  • @apnachannal9129
    @apnachannal9129 2 года назад +1

    BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY MUCH!

  • @flaterptech
    @flaterptech Год назад

    Thank You for this course, Its really helps, More knowledge to your brain bro

  • @remanonet7044
    @remanonet7044 2 года назад +1

    47:30 . Target class [App\Http\Controllers\Api\V1\Request] does not exist. what is the problem please ?

    • @easyscript549
      @easyscript549 2 года назад +1

      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.

  • @madaminmj8462
    @madaminmj8462 Год назад

    trust me , this is better even paid course

  • @phpisdead
    @phpisdead 2 года назад +2

    Thank you , next laravel and vue project please

  • @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: '!='

  • @Hexdy
    @Hexdy Год назад +1

    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!

  • @borakayalar
    @borakayalar Год назад

    Perfect course! Many Thanks

  • @paollarce5137
    @paollarce5137 Год назад +1

    What extension for VSC are you using ?

  • @bhedabipin9246
    @bhedabipin9246 2 года назад

    I got everything I needed to know in this one video. Thank you!!

  • @reksihu
    @reksihu 8 месяцев назад +1

    Thank you for this video!

  • @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

  • @ITDevelopmentCafe
    @ITDevelopmentCafe Год назад +1

    Thank you for the very efficient course that you have explained in the simplest possible way.

  • @alvinchristianto-p2d
    @alvinchristianto-p2d Год назад

    great tutorial, however I found problem in 1:10:51 when using "protection", then changing to "protected"

  • @delvinnj-vh7gf
    @delvinnj-vh7gf 7 месяцев назад

    Nice course, Could please make a video about graphQL in Laravel ?

  • @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.

  • @gillesashley9314
    @gillesashley9314 Год назад +3

    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.

  • @ousssika5359
    @ousssika5359 2 года назад +4

    $adminToken = $user->createToken("admin-token", ["create", "update", "delete"]);
    it return form me tha the createToken method is not define on the user

    • @ChampionChapters
      @ChampionChapters 2 года назад

      Same here. Did you manage to find a solution?

    • @vladimir8036
      @vladimir8036 Год назад +1

      Instantiate variable $user like this:
      $user = User::where('email', $credentials['email'])->first();
      It will return App\Models\User instance, which should have HasApiTokens trait.

  • @thetheedesk
    @thetheedesk 8 месяцев назад +1

    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)

  • @anarbairam
    @anarbairam 4 месяца назад

    awesome teaching skills

    • @envatotuts
      @envatotuts  4 месяца назад +1

      Thanks a ton! 😊 We’re thrilled you think so. Cheers!

  • @Maen963
    @Maen963 2 года назад

    i wish my like button turns into 1000 likes button !
    what a PRO tutorial

  • @malikimoustapha4061
    @malikimoustapha4061 8 месяцев назад

    thank for this valuable tuto, My question is there another tuto example that shows how to consume thise rest API?

  • @vezzel1113
    @vezzel1113 Год назад

    could you make a more advanced tutorial this tutorial was really good.I learnt alot

  • @azad_agi
    @azad_agi Год назад +1

    Amazing Tutorial , Thank you so much

  • @ahmedmahmoodhameed2585
    @ahmedmahmoodhameed2585 8 месяцев назад

    Great course. Is there a GitHub repository for this course?

  • @covermaker8748
    @covermaker8748 Год назад +2

    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);
    }

  • @juancamilovallejos8328
    @juancamilovallejos8328 Год назад

    Very good and useful tutorial Thanks!

  • @ZephniStrife
    @ZephniStrife Год назад

    Absolutely love the video, also... love your vscode theme and icon set, could someone let me know what is being used here?

  • @davidedema8240
    @davidedema8240 2 года назад

    Wow. this is so easy to understand.

  • @needammo4792
    @needammo4792 Год назад

    can i use this for my mobile application making conection with the api and the mobile app?

  • @muhammadumarsotvoldiev8768
    @muhammadumarsotvoldiev8768 Год назад

    Thank you very much! Very helpful

  • @b.sgaming6870
    @b.sgaming6870 2 года назад

    very talented teacher - cheers

  • @danuzonez
    @danuzonez Год назад

    Best of the best tutorial

  • @DigitalHelpVault
    @DigitalHelpVault 2 года назад +1

    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 года назад +1

      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.

  • @CliveStewart-bq3od
    @CliveStewart-bq3od 10 месяцев назад

    Do you have a tutorial that shows how to create a laravel app that consume these api?

  • @alexanderkrist95
    @alexanderkrist95 Год назад

    Amazing course

  • @DailyCuteThingsInside
    @DailyCuteThingsInside Год назад

    can someone explain to me i read the documentation however i still don't get the difference between with and loadMissing and when do i use them. Thanks

  • @iambsquare
    @iambsquare 2 года назад

    I love this, havan't come across this kind of tutorial (Very understandable)

  • @mustafahassan9383
    @mustafahassan9383 2 года назад +1

    Bad Method Call: Did you mean App\Models\customer::invoice() ?
    it gives me this error

  • @karanjabrian9303
    @karanjabrian9303 Год назад

    Following Keenly. Is there any VSCode extension you are using to define comparison operators such as 'lte' sign? Someone help.

  • @jmmaguigad4855
    @jmmaguigad4855 10 месяцев назад

    Will this work on laravel 10 or laravel 11?

  • @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

  • @andrewmedvedev963
    @andrewmedvedev963 Год назад

    Wow thank you. Great tutorial. A lot of valuable information was given.

  • @israelterorisprikopat
    @israelterorisprikopat Год назад

    how about if we have 100 abilities or 100 role to apply to applicaton that we have build, so we must generate 100 token for those abbilities or role every sign in ? and how about make new abilities or role after applicaton running ? add the createtoken to the apps mannualy every time want to add new abilites or role ?

  • @hewsman1
    @hewsman1 2 года назад

    May I know why you skipped out on delete request? Finished the course

  • @karlkrasnowsky3895
    @karlkrasnowsky3895 Год назад

    All customer id fields in invoices are null after seed operation. Can't continue.

  • @chulopapi812
    @chulopapi812 Год назад

    Thank you for the tutorial. I will look out for you other tutorials. Loved it

  • @fahimtalukdar3071
    @fahimtalukdar3071 Год назад

    I am facing a problem. The problem is when I give a filter parameter in string for example city[eq]=washington, it doesn't give any data but if I give parameter in number for example amount[eq]=3000 then it's working and another problem only lt,gt,eq is working for me, other's don't. How can I remove this problem?. please give me the solution.

  • @vadimgerich9887
    @vadimgerich9887 Год назад

    fantastic video thank you so much 😍

  • @fatma-tv4gq
    @fatma-tv4gq Год назад

    what the version of laravel you are use?

  • @JakubAdamus1991
    @JakubAdamus1991 Год назад

    Great video, thanks a lot!

  • @benjaminvenezia1944
    @benjaminvenezia1944 2 года назад +2

    A great tutorial to follow with senior developer tips, this is really excellent! ♥🍻

  • @petersparks6954
    @petersparks6954 2 года назад +1

    Anyone know if this works on Laravel 9 & PHP 8?
    I keep getting 404 on my routes /api/v1/customers ? Thanks

    • @DevInspire-h7v
      @DevInspire-h7v 2 года назад

      yes it work

    • @ethans7395
      @ethans7395 2 года назад

      Make sure the server is running with "php artisan serve"

  • @issamhousni4180
    @issamhousni4180 Год назад

    Great course ♥♥

  • @locrien8888
    @locrien8888 9 месяцев назад

    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?