Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.14 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.14 KB

Laravel Eloquent Relationships Showcase

This repository contains a collection of Laravel Eloquent models and migrations showcasing various types of relationships within the Laravel framework. Whether you're new to Laravel or looking for a quick reference on implementing relationships, this repository provides clear and concise examples.

Features

  • One-to-One Relationships:
  • One-to-Many Relationships:
  • Many-to-One Relationships:
  • Many-to-Many Relationships:

Getting Started

Prerequisites

  • Laravel installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/SadiaRidita/laravel-eloquent-relationships.git
  2. Navigate to the project directory:

    cd laravel-eloquent-relationships
  3. Install dependencies:

    composer install
  4. Run migrations:

    php artisan migrate

Usage

Explore the various relationship examples in the app directory. Each model is accompanied by a migration file, providing a clear structure for understanding and implementing relationships.