How to make relationships in models | Laravel

Ever wondered on how relationships work in Laravel models? Well in this tutorial I’ll be explaining everything you need to know about relationships in laravel (eloquent).


one to many | hasmany
many to one | belongto
many to many | belongstomany
one to one | hasOne(table with no foreign key) belongsTo(table with foreign key)


Why not join the streams on :
3. htpps://

You can always talk to my through twitter :

Still reading? Well thank you! Looks like you want to know more about me. Why not start with subscribing?

You can also join my discord :
Supporting me can be done trough Patreon:

Random words of the day : Relationships



Build A Site Info