Skip to content

Instantly share code, notes, and snippets.

View ApoGouv's full-sized avatar
🚧
work in progress

Apostolos Gouvalas ApoGouv

🚧
work in progress
View GitHub Profile
@ApoGouv
ApoGouv / pivot-tables.md
Created March 8, 2020 15:01 — forked from Braunson/pivot-tables.md
Laravel 6.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.

@ApoGouv
ApoGouv / gitcom.md
Created September 30, 2018 07:13 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@ApoGouv
ApoGouv / gravity-forms-notification-popup-keep-form.php
Last active September 2, 2017 11:42 — forked from anythinggraphic/gravity-forms-notification-popup-keep-form.php
Gravity Forms Notification Popup (Genesis Framework)
<?php
//* OPTIONAL STEP - Keep the form disappearing.
//* Gravity Forms notification popup instead of the page redirect or AJAX notification.
//* Props to @WilliamAlexander in the comments
//* @link https://anythinggraphic.net/gravity-forms-notification-popup
add_filter( 'gform_confirmation', 'ag_custom_confirmation', 10, 4 );
function ag_custom_confirmation( $confirmation, $form, $entry, $ajax ) {
add_filter( 'wp_footer', 'ag_overlay');
@ApoGouv
ApoGouv / compatibility.js
Created August 4, 2017 11:29 — forked from danielpataki/compatibility.js
jQuery in WordPress
/* Regular jQuery */
$('.hideable').on('click', function() {
$(this).hide();
})
/* Compatibility Mode */
jQuery('.hideable').on('click', function() {
jQuery(this).hide();
})