<?php namespace Pingpong\Whoops;

use Illuminate\Support\ServiceProvider;

class WhoopsServiceProvider extends ServiceProvider {

	/**
	 * Indicates if loading of the provider is deferred.
	 *
	 * @var bool
	 */
	protected $defer = false;

	/**
	 * Boot the package.
	 * 
	 * @return void 
	 */
	public function boot()
	{
		$this->app['whoops.handler']->addResourcePath(__DIR__ . '/Resources');
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		//
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{
		return array();
	}

}

<?php namespace Pingpong\Whoops;

use Whoops\Handler\PrettyPageHandler;
use Illuminate\Support\ServiceProvider;

class WhoopsServiceProvider extends ServiceProvider {

	/**
	 * Indicates if loading of the provider is deferred.
	 *
	 * @var bool
	 */
	protected $defer = false;

	/**
	 * Boot the package.
	 * 
	 * @return void 
	 */
	public function boot()
	{
		$handler = $this->app['whoops.handler'];

        if($handler instanceof PrettyPageHandler)
        {
            $handler->addResourcePath(__DIR__ . '/Resources');
        }
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		//
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{
		return array();
	}

}

Add resource path only when using PrettyPageHandler
Add resource path only when using PrettyPageHandler
