From 9a62ab6c498bc0c0fb8cce8b217beed623db9dab Mon Sep 17 00:00:00 2001 From: Eric Blount Date: Tue, 15 Mar 2016 10:00:50 -0500 Subject: [PATCH] Explicit namespace root for \Exception Without the slash, running `php artisan laravel-log-keeper` with no configuration results in the following exception being raised: [Symfony\Component\Debug\Exception\FatalErrorException] Class 'MathiasGrimm\LaravelLogKeeper\Repos\Exception' not found --- src/Repos/RemoteLogsRepo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Repos/RemoteLogsRepo.php b/src/Repos/RemoteLogsRepo.php index 034a1a5..dc87a0c 100644 --- a/src/Repos/RemoteLogsRepo.php +++ b/src/Repos/RemoteLogsRepo.php @@ -15,7 +15,7 @@ public function __construct(array $config) $this->config = $config; if ($this->config['enabled_remote'] && !$this->config['remote_disk']) { - throw new Exception("remote_disk not configured for Laravel Log Keeper"); + throw new \Exception("remote_disk not configured for Laravel Log Keeper"); } $this->localLogPath = storage_path('logs'); @@ -65,4 +65,4 @@ public function get($log) { return $this->disk->get("{$this->remotePath}/{$log}"); } -} \ No newline at end of file +}