Laravel 5.8 Tutorial From Scratch - e24 - URL Helpers

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 36

  • @insanecuckooman8342
    @insanecuckooman8342 3 ปีที่แล้ว +3

    your tutorials are better than any premium paid course on the internet or in any university.

  • @malianopage4422
    @malianopage4422 4 ปีที่แล้ว

    how did you wrap the rout:list to a smaller view ?!

  • @bevedel
    @bevedel 4 ปีที่แล้ว

    very helpful. many thanks

  • @АзизАзизов-й4л
    @АзизАзизов-й4л 4 ปีที่แล้ว

    Thanx. You can also set route('customers.update', $customer) instead of route('customers.update', ['customer' => $customer]), as it get $cusomer ID automatically in this case.

  • @overlordmarvel12
    @overlordmarvel12 5 ปีที่แล้ว

    Fantastic Lesson

  • @dummail5709
    @dummail5709 4 ปีที่แล้ว

    great videos

  • @michaelkamau9565
    @michaelkamau9565 4 ปีที่แล้ว

    Thanks

  • @dirkbertels3872
    @dirkbertels3872 5 ปีที่แล้ว

    I think we (you :) forgot to add the ` @if(session()->has('message'))` stuff into app.blade, because the email response message has gone. Didn't see it on github either. Unless that's intentionally?

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว

      Not sure. Might have forgotten to add that to the repo

  • @meckyp94
    @meckyp94 5 ปีที่แล้ว +2

    He man! Love your vids!
    A request here🙋‍♂️ if you have the time, can you make a tutorial series about Laravel websockets?
    Thanks!

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว +2

      Been exploring that myself lately but haven’t gotten to a point where it’s anything useful. I will certainly share once I’m at a point that works flawlessly.

    • @rebeka1212100
      @rebeka1212100 5 ปีที่แล้ว +1

      @@CodersTape I think the Websockets are mainly used for real-time apps, such as chat or something...

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว +2

      That's right. Basically allowing for a "permanent" connection between the client and the server after the page has loaded. This allows the server to send pieces of data to update the UI without the need of refreshing the entire page. Chat is probably the most common example but some additional examples could be used in a status bar, or when a user uploads images and is getting resized behind the scenes or as extreme as a single page app.
      Right now, there are solutions like Pusher that work in Laravel perfectly fine but require the additional service, Symfony (maker of a lot of packages used in Laravel) has a package that uses Mercure. Mercure can be run in a docker instance or in your server, side by side with your app. That's the avenue I have been exploring with it.
      Check out this link to find out more on this new package.
      symfony.com/blog/symfony-gets-real-time-push-capabilities

    • @meckyp94
      @meckyp94 5 ปีที่แล้ว

      @@CodersTape You can also use Laravel-websocket from beyondcode. This package is like pusher, but you can host this on your own project.

    • @rebeka1212100
      @rebeka1212100 5 ปีที่แล้ว

      @@CodersTape Thanks man for your answer, appreciate your informative guidance
      つ(●з●)つ

  • @alyahsaini7692
    @alyahsaini7692 5 ปีที่แล้ว

    I didn't understand that why did you pass customer =>$customer at the end of the video. can you tell me with any example??
    and By the Way .. love your videos

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว

      That's so that it will have the correct url like '/customers/1'

    • @alyahsaini7692
      @alyahsaini7692 5 ปีที่แล้ว

      @@CodersTape thank you so much. I got it

  • @KingKhan-sl5kt
    @KingKhan-sl5kt 5 ปีที่แล้ว

    how could i use helper for update and edit
    Route::get('students/{student}/edit' ,'studentscontroller@edit')->name('students.edit');
    Route::put('students/{student}' , 'studentscontroller@update')->name('students.update');
    what show i write in the
    route('?')
    for both
    plz reply
    when i do then , its says you must use head,post,get
    method but i use patch mathod

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว

      I am not understanding your question

  • @hieunguyenac4675
    @hieunguyenac4675 5 ปีที่แล้ว

    I have a question that
    if I change Route::resource('customers', 'CustomersController') to Route::resource('customers-1', 'CustomersController') like that
    wont work. How to solve this problem each time I want to change url in Route::resource ?
    Thanks, You are the best! 😁

    • @viratrz
      @viratrz 4 ปีที่แล้ว

      use {{ action([ 'App\Http\Controller\CustomersController::class', 'index' ])}}

  • @aamishirfan3334
    @aamishirfan3334 5 ปีที่แล้ว

    how to use route helper for edit method i.e services/{service}/edit. How to set this in form action

    • @oceceli2
      @oceceli2 5 ปีที่แล้ว

      Use the same. For example:
      href="{{route('product.edit', ['product' => $product])}}"

    • @KingKhan-sl5kt
      @KingKhan-sl5kt 5 ปีที่แล้ว

      does it worked?? i do save but it didn't work

  • @adam192021
    @adam192021 5 ปีที่แล้ว

    The BEST as always!

  • @surojmaharjan1514
    @surojmaharjan1514 5 ปีที่แล้ว

    Very nice and clean tutorials... Thanx man. You've got a like and subscribe from me. :)

  • @kevinmensah1892
    @kevinmensah1892 5 ปีที่แล้ว

    i really fucked up in this url helpers lol its makes me crazy on how to do route with /edit xD and i dont have an internet connection for google to clone the github repo and thats the reason im still stockedup here and not moving forward to the next lesson how can i go to the edit how to view the edit view using route ? right now i just use {{route('customer.update',['customer',$customer->id]}} i know that it will just show me the show view so how i can able to go to the edit can you show me the edit route so i can go to the next lesson thank in advance

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว

      Route::get('customers/{customer}/edit', 'CustomersController@edit')->name('customers.edit');

    • @kevinmensah1892
      @kevinmensah1892 5 ปีที่แล้ว

      @@CodersTape i mean the route for the link in the link to see edit view

  • @yalcinozer4434
    @yalcinozer4434 5 ปีที่แล้ว

    Now it became a little hard to understand. Advanced topics comings I guess