Skip to content

Instantly share code, notes, and snippets.

View ollieread's full-sized avatar
👾
Build it all!

Ollie Read ollieread

👾
Build it all!
View GitHub Profile
if($validator->fails()){
return Response::json(['error' => 1,
'msg'=>$validator->errors()
]);
}
else{
public function uninstall()
{
/*$authnetpm = PaymentMethod::getByHandle('auth_net');
if(is_object($authnetpm)){
$authnetpm->delete();
}
$invoicepm = PaymentMethod::getByHandle('invoice');
if(is_object($invoicepm)){
$invoicepm->delete();
}
<?php
$attributes = $productAttributes
->pluck('attributesValues')
->flatten()
->unique()
->groupBy(function (AttributeValue $av) {
return $av->attribute->name;
})
->map(function (Collection $collection) {
@ollieread
ollieread / index.html
Last active April 25, 2018 11:50
Form isn't working
<!DOCTYPE html>
<html lang="en" class="wf-lato-i7-active wf-lato-n9-active wf-lato-n4-active wf-lato-i4-active wf-lato-n7-active wf-lato-i9-active wf-active gr__local_venuesearchlondon_com"><head>
<!-- Google Tag Manager -->
<script type="text/javascript" async="" src="https://widget.intercom.io/widget/lph7i9kd"></script><script src="//bat.bing.com/bat.js" async=""></script><script src="https://connect.facebook.net/signals/config/1148453628554257?v=2.8.14&amp;r=stable" async=""></script><script async="" src="https://connect.facebook.net/en_US/fbevents.js"></script><script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script><script async="" type="text/javascript" src="http://www.googletagservices.com/tag/js/gpt.js"></script><script async="" src="https://www.googletagmanager.com/gtm.js?id=GTM-TVMQMR"></script><script>(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js