Browse Source

Add storage path configuration.

Taylor Otwell 11 years ago
parent
commit
17b199b6f6
2 changed files with 14 additions and 1 deletions
  1. 1 1
      app/start/global.php
  2. 13 0
      bootstrap/paths.php

+ 1 - 1
app/start/global.php

@@ -32,7 +32,7 @@ ClassLoader::addDirectories(array(
 
 $logFile = 'log-'.php_sapi_name().'.txt';
 
-Log::useDailyFiles(__DIR__.'/../storage/logs/'.$logFile);
+Log::useDailyFiles(storage_path().'/logs/'.$logFile);
 
 /*
 |--------------------------------------------------------------------------

+ 13 - 0
bootstrap/paths.php

@@ -41,4 +41,17 @@ return array(
 
 	'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',
+
 );