Eloquent By Example

19. Polymorphic basics: Custom polymorphic types

Download full source code

Let's cover every Eloquent relationship type from beginner to advanced, with a practical project-style implementation.