Skip to content

Instantly share code, notes, and snippets.

@edalis
edalis / feed-short.php
Last active October 17, 2016 07:29 — forked from gregrickaby/feed-short.php
WP: Custom RSS Template
<?php
/**
* Customs RSS feed with related posts.
*
* Place this file in your theme's directory.
*
* @package sometheme
* @subpackage theme
*/
@edalis
edalis / App\Exceptions\Handler.php
Created February 11, 2017 08:28 — forked from jacurtis/App\Exceptions\Handler.php
How to get filp/whoops to work in Laravel 5.2 or 5.3 - Add this code to your `App\Exceptions\Handler.php` file.
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return mixed
*/
protected function convertExceptionToResponse(Exception $e)
{
if (config('app.debug')) {
$whoops = new \Whoops\Run;