Relationship Questions

Ad

hasManyThrough with morph

I have a projects table that either can be assigned to a user or a team, this is the structure: id assignable_id assignable_type
Ad
Ad

Laravel, relationship problems

This is my first laravel project and i have to do a lms(learning management system). i have a course table and an user table. here is my

2 foreign keys one create blade

I think its an easy one but my brain is not trying to comprehend it. so the issue is i have a series table, a seasons table and an episode table.
Ad

Laravel/Lumen - Using Model::with()

I have two tables: coretable and extensiontable_itc. they are in a 1-n relationship, extensiontable_itc can have n records referencing 1 record on
Ad
Ad
Ad

save a belongsTo relationship

I have a classic one-to-many relationships, and i am trying to save the model of the belongsto side. the 2 models have these

Laravel has many through

My table products - id - name product_variants - id - product_id - color_id product_colors - id - hex
Ad

Laravel relations relation

I have an understanding issue with laravel eloquent models and relations. i have a user table user. these users can add car
Ad
Ad
Ad

Blog Categories

Ad