Laravel BelongsToMany With Same Table: How To Name Things?

An interesting example of many-to-many relationships when both sides are the same DB table “users“. Also, I will show how the Follow button can be implemented with Livewire. Repository: My course “Practical Laravel Livewire from Scratch“: - - - - - Support the channel by checking out our products: - Enroll in my Laravel courses: - Try our Laravel QuickAdminPanel: - Purchase my Livewire Kit: - View Laravel Code Examples: - Subscribe to my weekly newsletter:
Back to Top