Browse Source

Fixing a few things. Namespace configuration.

Taylor Otwell 9 years ago
parent
commit
c9fb1c9110
2 changed files with 13 additions and 5 deletions
  1. 1 1
      bootstrap/paths.php
  2. 12 4
      config/namespaces.php

+ 1 - 1
bootstrap/paths.php

@@ -65,7 +65,7 @@ return array(
 	|
 	*/
 
-	'commands' => __DIR__.'/../app/Console',
+	'console' => __DIR__.'/../app/Console',
 	'config' => __DIR__.'/../config',
 	'controllers' => __DIR__.'/../app/Http/Controllers',
 	'database' => __DIR__.'/../database',

+ 12 - 4
config/namespaces.php

@@ -17,15 +17,23 @@ return array(
 
 	/*
 	|--------------------------------------------------------------------------
-	| Root Controller Namespace
+	| Generator Namespaces
 	|--------------------------------------------------------------------------
 	|
-	| This namespace will be automatically prepended to URLs generated via
-	| the URL generator for controller actions, allowing for the simple
-	| and convenient referencing of your namespaced controller class.
+	| These namespaces are utilized by the various class generator Artisan
+	| commands. You are free to change them to whatever you wish or not
+	| at all. The "app:name" command is the easiest way to set these.
 	|
 	*/
 
+	'console' => 'App\Console\\',
+
 	'controllers' => 'App\\Http\\Controllers\\',
 
+	'filters' => 'App\Http\Filters\\',
+
+	'providers' => 'App\Providers\\',
+
+	'requests' => 'App\Http\Requests\\',
+
 );