We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
routes/console.php
1 parent e5b3239 commit a996c07Copy full SHA for a996c07
src/Illuminate/Foundation/Configuration/ApplicationBuilder.php
@@ -282,11 +282,7 @@ public function withMiddleware(?callable $callback = null)
282
*/
283
public function withCommands(array $commands = [])
284
{
285
- if (empty($commands) && is_file($this->app->basePath('routes/console.php'))) {
286
- $commands = [$this->app->basePath('routes/console.php')];
287
- }
288
-
289
- if (empty($commands) && is_dir($this->app->path('Console/Commands'))) {
+ if (empty($commands)) {
290
$commands = [$this->app->path('Console/Commands')];
291
}
292
0 commit comments