From 17b199b6f69b236f55d2cd3eedf02708c11e327b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 26 Mar 2013 09:23:41 -0500 Subject: [PATCH] Add storage path configuration. --- app/start/global.php | 2 +- bootstrap/paths.php | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/start/global.php b/app/start/global.php index d9bd0b9c..414fe48c 100644 --- a/app/start/global.php +++ b/app/start/global.php @@ -32,7 +32,7 @@ $logFile = 'log-'.php_sapi_name().'.txt'; -Log::useDailyFiles(__DIR__.'/../storage/logs/'.$logFile); +Log::useDailyFiles(storage_path().'/logs/'.$logFile); /* |-------------------------------------------------------------------------- diff --git a/bootstrap/paths.php b/bootstrap/paths.php index 19f47434..5a1f640b 100644 --- a/bootstrap/paths.php +++ b/bootstrap/paths.php @@ -41,4 +41,17 @@ 'base' => __DIR__.'/..', + /* + |-------------------------------------------------------------------------- + | Storage Path + |-------------------------------------------------------------------------- + | + | The storage path is used by Laravel to store cached Blade views, logs + | and other pieces of information. You may modify the path here when + | you want to change the location of this directory for your apps. + | + */ + + 'storage' => __DIR__.'/../app/storage', + );