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
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
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 ?
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".
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
made me laugh when you tried minty 'that looks different, thats for sure' haha
hey dont mess with minty haha
Today you are late. 😂Thank you for the heroic effort😉
😅 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.
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?
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.
Okay Sir. Already send an email
thanks man for the code
You're welcome!
Thank you!
Welcome!
perfect 🤍