In this post, you'll learn how to use a many-to-many polymorphic relationship to apply data of a "Tag" model to both "Post" and "Video" models.
Welcome to Laracoding
This blog post will show how to define and query a One-to-Many Polymorphic Relationship. We will build an example that stores comments for posts or videos.
This tutorial will show you how to use a pivot with an extra field to store and access a value, like the quantity of a product in an order.
By default Laravel adds created_at and updated_at timestamps. This tutorial shows how to make models and migrations which use only created_at.
In this blog post, we'll explore 5 ways to link to routes in Blade. I'll cover routes named or unnamed, with or without parameters and route model binding.
In this blog post, you'll learn 4 ways to share common variables or data across all views without manually passing them to each view.