Support my work: 1. On BuyMeACoffee: www.buymeacoffee.com/qirolab 2. On Patreon: www.patreon.com/qirolab
@hari-sfc3 жыл бұрын
You teaching is so good , please avoid subtitle .Code is not visible properly
@migishaboyd2 жыл бұрын
This was very helpful, thank you Sir!
@dfordemo9812 жыл бұрын
in modern laravel, at 3:05 pivot table migration colomn definitions should be $table->foreignId('post_id')->references('id')->on('posts'); $table->foreignId('tag_id')->references('id')->on('tags');
@baptistedara80262 жыл бұрын
thank you because i was also asking myself about this
@yaraabdi27283 жыл бұрын
First of all thank you for this incredible playlist I have kind of a stupid question but i'm really curious about it xD, how do you do the comment thing with a line above it?
@bashircodes2 жыл бұрын
Thanks sir for making it easy
@QiroLab Жыл бұрын
Always welcome
@MAZEDURRAHAMAN3 жыл бұрын
Just wow! Clear to understand
@QiroLab3 жыл бұрын
Glad you liked it!
@rezamortezaie53772 жыл бұрын
Thank you a lot for your clear and understandable videos. I have a question. With many to many relationships between an Author and Tag models, how to authorize an Author to update tags in the related policy (update method)? For example, something like this, is right? $author->id === Tag::with('author')->pluck('id'); ??
@galvez19852 жыл бұрын
Excellent tutorial
@nuruzzanamhimel59112 жыл бұрын
very nice. thx u sir
@zhasan664 жыл бұрын
Really awesome tutorial.
@Ehsankhan05773 жыл бұрын
make a series on solid principles in Laravel
@QiroLab2 жыл бұрын
Great suggestion, I will make a series on this as well.
@Ehsankhan05772 жыл бұрын
@@QiroLab because there is no free enough material an try this with laravel
@inteteam-webdevelpment82464 жыл бұрын
I would use TAGable in the polymorphic relationship to use with tags while having posts. I would then not need an additional table in my DB. Can you elaborate why and when it's better to have your particular case instead of my way with morphs? Personally, I can't understand why in 2020 we still might use it.
@bazirakeeric72442 жыл бұрын
Wow! what a helpful video thank you!!!
@QiroLab2 жыл бұрын
Glad it was helpful!
@BabuMondal-tp7bu4 жыл бұрын
Awesome tutorial , can you please let me know how I can implement it Vue J's as fronted, thank you 😃
@rohitgour28962 жыл бұрын
Hello sir, i have a question can we put many to many relationship between user and country table as user have multiple countries and countries have multiple users?
@laptop88404 жыл бұрын
sir may i ask how can i filter posts by tags?for example display those posts that have java and php tags? Thank You For This Good Tutorial
@JaiHind-ry2il4 жыл бұрын
Hey @qirolab, thanks for this very good informative tutorial. I have one question, is there any way to fire events on attach, detach or sync?
@QiroLab4 жыл бұрын
For this, you need to modify belongsToMany() relationship. First, create a pivot table model and then create belongsToMany() relation using that model. Now in the pivot model, you can listen for model lifecycle events (created, deleted ...) on attach, detach or sync. If you get confused, don't worry, I will create a video tutorial on this topic.
@angucba18382 жыл бұрын
thank you so much
@ricko13 Жыл бұрын
where in the laravel docs can I find that sh!t about naming conventions? I was totally lost before hearing this: 2:04
@daverussell4052 Жыл бұрын
do we need to add foreign key also? on the pivot table
@madie2659 Жыл бұрын
yes we add foreign keys in pivot table
@bilde81402 жыл бұрын
2:47 what does mean "--create=post_tag" thank you
@tahasamadi37302 жыл бұрын
how to add it with form ?
@girjeshkumar78313 жыл бұрын
Awesome and supr
@QiroLab3 жыл бұрын
Thank you so much
@madie26596 ай бұрын
does it matter if i change the order of foriegn keys like tag_id first and post_id second 4:18
@QiroLab6 ай бұрын
Yes, it is important. Because it is looking for column names for respective tables.