Skip to content
Laracoding Logo
Search
  • Backend
  • Database
  • Frontend
  • Third Party

Archives: Blog

link to 5 Ways to Get the Last Insert ID in Laravel

5 Ways to Get the Last Insert ID in Laravel

This article will explore several methods to get the last insert ID in Laravel, by using Eloquent models, the DB facade, or by accessing the PDO instance.

Continue Reading
link to How to use Many-to-Many Polymorphic Relationship in Laravel

How to use Many-to-Many Polymorphic Relationship in Laravel

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.

Continue Reading
link to How to use One-to-Many Polymorphic Relationship in Laravel

How to use One-to-Many Polymorphic Relationship in Laravel

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.

Continue Reading
link to Using Extra Fields in Pivot Table With Laravel belongsToMany

Using Extra Fields in Pivot Table With Laravel belongsToMany

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.

Continue Reading
link to How to Use Only created_at in Laravel (No updated_at)

How to Use Only created_at in Laravel (No updated_at)

By default Laravel adds created_at and updated_at timestamps. This tutorial shows how to make models and migrations which use only created_at.

Continue Reading
link to 5 Ways to Link to a Route Using Laravel

5 Ways to Link to a Route Using Laravel

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.

Continue Reading
« PREV Page 1 … Page 8 Page 9 Page 10 Page 11 Page 12 … Page 15 NEXT »

About Us

Laracoding.com is a blog created to help Laravel enthusiasts of all levels to develop their skills. The blog is run by Johan van den Broek, a seasoned Laravel developer who is passionate about sharing his knowledge to make Laravel development more accessible to everyone.

Legal Disclaimer

Laracoding is owned and operated by VisionFlow Media, a company owned by Johan van den Broek, based in Lieren, the Netherlands.

    Laracoding Logo

    Contact

    Veldbrugweg 8
    7364 AE Lieren
    The Netherlands

    +31(6) 12475245
    info@laracoding.com

    More information

    • About Laracoding
    • About Johan van den Broek

    Help

    • Privacy Policy
    • Contact
    • Sitemap

    © 2025 VisionFlow Media
    • LinkedIn
    • Twitter