Skip to content

Instantly share code, notes, and snippets.

View ArtisanTinkerer's full-sized avatar

Mick Byrne ArtisanTinkerer

  • Osprey Flight Solutions
  • UK
View GitHub Profile
@ArtisanTinkerer
ArtisanTinkerer / laravel-5-tweak-login-authcontroller.php
Created February 16, 2016 14:30 — forked from AlexanderPoellmann/laravel-5-tweak-login-authcontroller.php
Log in with Username or Email in Laravel 5 - AuthController->postLogin()
<?php
/**
* This snippet goes into your
* \app\Http\Controllers\Auth\AuthController.php
*
* Make sure to update your login view as well
* (\resources\views\auth\login.blade.php). Just
* change
*/
@ArtisanTinkerer
ArtisanTinkerer / dashboard.blade.php
Last active July 21, 2023 07:47
Gridstack.js and Vue.js for Laravel dashboard
@extends('layouts.app')
@section('head')
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdn.jsdelivr.net/lodash/4.17.2/lodash.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/gridstack.js/0.2.6/gridstack.css"/>
@ArtisanTinkerer
ArtisanTinkerer / dashboard.blade.php
Created November 28, 2016 10:11
Working on Gridstack
@extends('layouts.app')
@section('head')
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdn.jsdelivr.net/lodash/4.17.2/lodash.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/gridstack.js/0.2.6/gridstack.css"/>
@ArtisanTinkerer
ArtisanTinkerer / ThreadedMessageTest.php
Last active September 7, 2021 08:19
patch with Guzzle
/**
* @test
*/
public function enableSignedWebhook(): void
{
$token = getenv('SENDGRID_API_KEY');
$response = Http::withToken($token)
->asJson()
->patch('https://api.sendgrid.com/v3/user/webhooks/event/settings/signed', ['enabled' => true]);