<?php namespace Morrislaptop\LaravelFivePackageBridges;

use ReflectionClass;

trait LaravelFivePackageBridgeTrait {

	public function boot()
	{
		$this->loadViewsFrom($this->namespace, $this->guessPackagePath() . '/views');
		$this->loadTranslationsFrom($this->namespace, $this->guessPackagePath() . '/lang');
		$this->setConfig();
		$this->app['config']->package($this->vendor . '/' . $this->namespace, $this->guessPackagePath() . '/config', $this->namespace);
	}

	protected function guessPackagePath() {
		$path = (new ReflectionClass(get_parent_class()))->getFileName();

		return realpath(dirname($path).'/../../');
	}

	protected function setConfig() {
		$config = require $this->guessPackagePath() . '/config/config.php';
		$this->app['config']->set($this->namespace, $config);
	}

}

<?php namespace Morrislaptop\LaravelFivePackageBridges;

use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\File;
use ReflectionClass;

trait LaravelFivePackageBridgeTrait {

	public function boot()
	{
		$this->loadViewsFrom($this->namespace, $this->guessPackagePath() . '/views');
		$this->loadTranslationsFrom($this->namespace, $this->guessPackagePath() . '/lang');
		$this->setConfig();
	}

	protected function guessPackagePath() {
		$path = (new ReflectionClass(get_parent_class()))->getFileName();

		return realpath(dirname($path).'/../../');
	}

	protected function setConfig() {
		$path = $this->guessPackagePath() . '/config/config.php';
		$files = App::make('files');

		if ( $files->exists($path) ) {
			$config = require $path;
			$this->app['config']->set($this->namespace, $config);
		}
	}

}

Check for config file first
Check for config file first
