Тёмный
No video :(

Follow & Unfollow | Laravel 10 Tutorial #28 

Yelo Code
Подписаться 15 тыс.
Просмотров 4,6 тыс.
50% 1

Laravel 10 Many to Many Relationships
On this episode we will build our our follow and unfollow functionality using Many to Many Relationships
Github Link:
github.com/Cod...
Playlist of Laravel 10 Tutorial Course :
• Laravel 10 Beginners C...
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

Опубликовано:

 

13 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@mrx7mrx
@mrx7mrx 8 месяцев назад
Thanks for the lessons. Few suggestions: 1. For the unfollow route more common to use a DELETE method 2. For the User->follows method instead of using a query builder we can just use "return $this->followings->contains($user);" And of course, it's better to use a Redis for those methods but I think it's not for beginners :) thanks again for your job
@javajoint
@javajoint 8 месяцев назад
quick note for when you want to zoom in on something on your Mac: enable the assist where you can control - mousewheel to zoom in / out (not just for TablePlus, but the whole screen)
@yelocode
@yelocode 8 месяцев назад
Thanks for sharing that Daniel. Just tried it and it works like a charm, wish I known about it sooner.
@kouzokiodin3623
@kouzokiodin3623 Месяц назад
Great Content
@yelocode
@yelocode Месяц назад
Thank you
@isaiahsemeton7473
@isaiahsemeton7473 8 месяцев назад
you are really good in teaching. Keep it up sir
@yelocode
@yelocode 8 месяцев назад
Thank you for watching.
@MdSohelRana-wj8yr
@MdSohelRana-wj8yr 10 месяцев назад
Outstanding..! man. Take love and live long by the grace of Almighty...!
@yelocode
@yelocode 10 месяцев назад
Thanks for watching.
@mohammadyassen2750
@mohammadyassen2750 9 месяцев назад
you are a legend!
@yelocode
@yelocode 9 месяцев назад
Thank you
@HamadAbdulla_7
@HamadAbdulla_7 Год назад
Thanks Boss
@yelocode
@yelocode Год назад
Thanks for the support
@mirkamolrakhimov3406
@mirkamolrakhimov3406 5 месяцев назад
Hello Bro I got error in this section Error PHP 8.3.1 Call to a member function attach() on false public function follow(User $user) { $follower = auth()->user(); $follower->followings()->attach($user); return redirect()->route('users.show',$user->id)-with('success',"followed succesfully!"); } Can you help with that please?
@yelocode
@yelocode 5 месяцев назад
Looks like an issue with your relationship definition, make sure you have the relationship defined on your User model. public function followings() { return $this->belongsToMany(User::class, 'follower_user', 'follower_id', 'user_id')->withTimestamps(); }
@mirkamolrakhimov3406
@mirkamolrakhimov3406 5 месяцев назад
@yelocode thank you i fixed it now
@ismaail
@ismaail Год назад
Thanks. Don't you think that the Follow/Unfollow button could be better if done with Livewire ?
@yelocode
@yelocode Год назад
I agree, makes more sense to use livewire on a real world application. I'm assuming viewers of this series are not familiar with livewire. But you gave me a great idea, I might redo these at the end of the course using livewire. Thank you for watching
@lucascavalheri7217
@lucascavalheri7217 11 месяцев назад
@@yelocode Damn, if you make this application in Livewire I would love it.
@nukeman4
@nukeman4 Год назад
Bro, you helped me so much. I have question, is there easy way to implement microsoft oauth sign in in laravel?
@yelocode
@yelocode Год назад
I personally have never implemented microsoft oauth, For google and facebook Laravel Socialite is super easy and I used it multiple times but does not support microsoft. Microsoft seems to have a tutorial on this learn.microsoft.com/en-us/graph/tutorials/php?tutorial-step=4&tabs=aad if you haven't checked it out already.
@skia515
@skia515 Год назад
thanks man
@yelocode
@yelocode Год назад
Thank you for watching bro
@darshanbhandary
@darshanbhandary 7 месяцев назад
hello there's a small issue to be resolved in your user model your function defination rises a expection stating call to undefined method Illuminate\Database\Eloquent\Relations\BelongsToMany::exits() if your are using the below code which i have commented out below so to solve it you can use other intruction it works fine public function follows( User $user){ // return $this->following()->where('user_id', $user->id)->exists(); return $this->following()->where('follower_id', $this->id)->where('user_id', $user->id)->exists(); } thank you
@ousssika5359
@ousssika5359 11 месяцев назад
thanks for your hellp man
Далее
Emails & Mail Trap testing | Laravel 10 Tutorial #29
16:17
I Built a Trampoline Park in My House!
29:50
Просмотров 11 млн
ROLLING DOWN
00:20
Просмотров 6 млн
Filament: Sidebar Collapsible
2:00
Просмотров 1,5 тыс.
I followed all the rules
0:51
Просмотров 134 тыс.
PHP is the future
34:27
Просмотров 173 тыс.
I Built a Trampoline Park in My House!
29:50
Просмотров 11 млн