Thanks! I couldn't find the proper documentation anywhere about this, but pivot model solved it. TIP: You can directly create pivot table through artisan command with 'php artisan make:model Team --pivot'
@kristofszobacsi51234 жыл бұрын
you wrote make:mode at 8:10...and it worked...i mean, how????
@Ehsankhan05773 жыл бұрын
nice tutorial. your way of explaining is good...please keep it up
@tijubrains3 жыл бұрын
Thank you soooooooo much Harish. This is really helpful.
@QiroLab3 жыл бұрын
Glad to hear that
@TimKariuki Жыл бұрын
Suppose I want to get the Users as well as Tasks. How should that be achieved using this?
@hopnguyen59483 жыл бұрын
thank u so much, its hard to remember but its useful!
@nuruzzanamhimel59112 жыл бұрын
thx u sir.... for your kindness
@scottmcdaniel8644 жыл бұрын
what db tool are you using?
@QiroLab4 жыл бұрын
Here I am using Chrome MySql extension, because it is very light, Now I have switched to TablePlus, it is also good.
@muhammadaftab9252 Жыл бұрын
Thank you so much.
@QiroLab11 ай бұрын
Thank you! Cheers!
@kamleshpaul4144 жыл бұрын
which intelicence u r using and is it paid.?
@QiroLab4 жыл бұрын
I am using free version of "PHP Intelephense". Along with that I have also installed "PHP Namespace Resolver", "Laravel Model Snippets".
@kamleshpaul4144 жыл бұрын
@@QiroLab thanks
@tothebone46134 жыл бұрын
What if employee have many assignment that have one to many relation table such as position, document and ship all in assignment tablle what type relation is this polymorph or can i use has many through ?, . ->employe id assignment id ->assignment position_id ship_id document_id kindly need your knowledge thank you.
@QiroLab4 жыл бұрын
For that you should use polymorphic relationships.
@tothebone46134 жыл бұрын
@@QiroLab do you have any course to implement this with crud ?
@idrissjouid37984 жыл бұрын
Hi, I think this will not be correct. For example user1 has 2 projects and different tasks in this 2 projects. Now if you select project1->tasks then you will receive all the tasks of project1 and project2.... Because there is no relation between projects and tasks...
@idrissjouid37984 жыл бұрын
@Ayoub Bousetta yes but i mean the relationship method is not correct in this video... if the answer is the where() method as you say so i can use it without declaring any relationship method.I can use $project->where ('user_id', Auth->user()->id) and don't declare any relationship method in my models.
@FindWebX3 жыл бұрын
Thank you very much
@bishalbhattarai95082 жыл бұрын
I have 3 tables ...Movie,Role and Crew Movie belongsToMany Role Role belongsToMany Crew I want to fetch crew for movie ???? how is this possible can you help me?