Skip to content

Instantly share code, notes, and snippets.

View jamesfairhurst's full-sized avatar

James Fairhurst jamesfairhurst

View GitHub Profile
@jamesfairhurst
jamesfairhurst / app.php
Last active January 19, 2017 21:44
Configuring Multiple Laravel Log Files
$app->configureMonologUsing(function ($monolog) use ($app) {
$monolog->pushHandler(new Monolog\Handler\StreamHandler($app->storagePath() . '/logs/info.log', Monolog\Logger::DEBUG, false));
$monolog->pushHandler(new Monolog\Handler\StreamHandler($app->storagePath() . '/logs/laravel.log', Monolog\Logger::NOTICE, false));
return $monolog;
});
@jamesfairhurst
jamesfairhurst / PasswordBroker.php
Created May 3, 2016 08:00
Laravel 5.2 Queue Password Reset Email
<?php
namespace App;
use Illuminate\Auth\Passwords\PasswordBroker as IlluminatePasswordBroker;
class PasswordBroker extends IlluminatePasswordBroker
{
/**
* Send the password reset link via e-mail in a queue