In this tutorial you'll learn how to use Has-Many-Through in Laravel. Using a practical example I'll show you how to set up and access the relationships.
Category: Database
In this article, you'll learn to create and use a Many-to-Many relationship. As an example we'll build an application that allows students to enroll in courses.
In this tutorial, you'll learn how to use One-to-Many relationships in Laravel while building an example app that can associate an author with multiple books.
In this tutorial, you'll learn how to use one-to-one relationship in Laravel. To set this up we'll only need to add one line of code to each of the 2 classes.
How to Retrieve Data Between Two Dates With Laravel Eloquent
When dealing with date-based columns, such as date or datetime, it often becomes necessary to retrieve records between two dates. In this tutorial, we will explore three different solutions to run...
Using JSON typed data in a Laravel database provides a flexible solution for saving dynamic attributes or unstructured data for any purpose In this tutorial, we will walk through the process of...