Like Button | Laravel 10 Tutorial #33

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Laravel 10 like button
    On this episode we will learn how to build a simple like button, we will also refactor our code base a little bit more.
    Playlist of Laravel 10 Tutorial Course :
    • Laravel 10 Beginners C...
    Boots Watch :
    bootswatch.com/
    Laravel debug bar:
    github.com/bar...
    HTML template Github Link:
    github.com/yel...
    What is Laravel :
    Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
    en.wikipedia.o...
    If you're looking to learn how to authenticate a user using Laravel 10, then this is the video for you! In this tutorial, In this tutorial, we'll create a simple registration form that users will be able to submit.
    If you have any questions or problems please leave a comment.
    Laravel Blade
    Laravel crash course
    Laravel Database and crud tutorial
    Laravel Login and Authentication
    Laravel registration

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

  • @marconarca2706
    @marconarca2706 6 месяцев назад +1

    in 10:02 sir I am getting this error "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'idea_like.ideas_id' in 'where clause'" why is that ? I am following line by line in the idea_like table

    • @marconarca2706
      @marconarca2706 6 месяцев назад

      When in the 10:02 I removed $idea->likes()->count() and instead replaced it to 0. The app is totally working fine why is that ?

    • @irinairina634
      @irinairina634 6 месяцев назад

      hi, it's probably because in your migration (create_idea_like_table) and accordingly in your db table "idea_like" there's column "idea_id", not "ideas_id".

  • @kadirertan8664
    @kadirertan8664 7 месяцев назад +1

    Very nice and easy to understand explanation. I found that we can use optional() function like below instead of using extra @auth directive.
    @if (!optional(auth()->user())->likedIdea($idea))
    show like button
    @else
    show unlike button
    @endif

  • @khalifcolvin8496
    @khalifcolvin8496 5 месяцев назад +2

    made me laugh when you tried minty 'that looks different, thats for sure' haha

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

      hey dont mess with minty haha

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

    Today you are late. 😂Thank you for the heroic effort😉

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

      😅 yes, this week I been a bit busier than usual. Should be back to regular upload this coming week.
      Thank you for the continues support Hamad.

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

    Hello Sir. Can I contact you through Slack or any other way to ask a few questions about my ongoing project? I have a small issue. can I get some advice?

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

      You can email me at info@yelocode.com Hasith. I currently can't help with big issues due to limited time, but if you have a small issue I will try to help you out or make a video about it if it's possible.

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

      Okay Sir. Already send an email

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

    thanks man for the code

  • @АртурЗарипов-б2й
    @АртурЗарипов-б2й 11 месяцев назад +1

    Thank you!

  • @LoneTaha
    @LoneTaha 6 месяцев назад

    perfect 🤍