Skip to content

Instantly share code, notes, and snippets.

'meta_query' => array(
array(
'key' => 'product_current_stock',
'value' => "(SELECT wp_postmeta.meta_value as min_stock FROM wp_postmeta WHERE wp_postmeta.post_id = wp_posts.ID AND wp_postmeta.meta_key = 'product_minimum_stock')",
'compare' => '>='
)
),
@dannewns
dannewns / AuthController.php
Last active October 28, 2015 17:41 — forked from trovster/AuthController.php
Laravel 5.1 Auth functionality.
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use Illuminate\Mail\Message;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\PasswordBroker;
use Illuminate\Support\Facades\Password;
use Illuminate\Foundation\Auth\ThrottlesLogins;
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd http://www.google.com/kml/ext/2.2 http://code.google.com/apis/kml/schema/kml22gx.xsd">
<Document id="WarwickshireRing_Simple">
<name>WarwickshireRing_Simple</name>
<Snippet></Snippet>
<Folder id="FeatureLayer0">
<name>WarwickshireRing_Simple</name>
<Snippet></Snippet>
<Placemark id="ID_00001">