Skip to content

Instantly share code, notes, and snippets.

View Gams101's full-sized avatar
🏠
Working From Home

Gammalil Basallo Gams101

🏠
Working From Home
View GitHub Profile
@Gams101
Gams101 / wsl2-setup
Last active April 11, 2022 09:03
WSL2 - Laravel Environment Setup
**Prepare setup to install PHP**
``` bash
sudo add-apt-repository ppa:ondrej/php
```
**Update packages available**
``` bash
sudo apt-get update && sudo apt-get upgrade
```
@Gams101
Gams101 / pivot-tables.md
Created December 3, 2020 03:53 — forked from Braunson/pivot-tables.md
Laravel 8.x - Diving into Pivot Tables

Laravel 6 - Diving Into Pivot Tables

Pivot tables can be confusing and a little hard to wrap your head around at first. In this quick article we are going to dive into what a pivot table is, how to create one and finally how to use the pivot table. Let's dive in!

What is a pivot table?

A pivot table is used to connect relationships between two tables. Laravel provides a Many To Many relationship where you can use a pivot table.