MySQL Database & SQLite
Let's get the basics of working with a database in Laravel by setting up a MySQL database from scratch. Let's also create a migration and a model for our services. To wrap it up, let's change to a SQLite database to show how simple it is.
Polymorphism is just a fancy word for the concept that objects can take different shapes as long as they follow the same interface. In this episode, we are exploring One To One (Polymorphic) relationships, One To Many (Polymorphic) relationships and Many to Many (Polymorphic) relationships by example.
Eloquent Relationships Many To Many Part 2 (BelongsToMany)
Eloquent offers a simple way to declare database relationships. In this episode, we are adding additional data to the pivot table and storing the name of the user that performed the sync of those two resources.
Eloquent Relationships Many To Many (BelongsToMany)
Eloquent offers a simple way to declare database relationships. In this episode, we are setting a many to many relationship between a user and role model.