Skip to content

Instantly share code, notes, and snippets.

View benluxford's full-sized avatar

Ben Luxford benluxford

  • Northern Rivers, NSW, Australia
View GitHub Profile
module.exports = {
request(message, copyId) {
this.op = message.author;
this.channel = message.channel;
this.copyID = copyId;
// Delete the trigger message from the channel
message.delete().then(this.getMessage()).catch(console.error);
},
// Get the requested message
getMessage() {
@benluxford
benluxford / WebhooksController.php
Last active June 10, 2017 16:52
Stripe Webhook Controller with Event Checking for Laravel 5
<?php
namespace App\Http\Controllers;
use Stripe\Stripe;
use Stripe\Event;
use Illuminate\Http\Request;
class WebhooksController extends Controller
{