-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.php
More file actions
118 lines (104 loc) · 4.64 KB
/
commands.php
File metadata and controls
118 lines (104 loc) · 4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
declare(strict_types=1);
use App\Commands\Helpers;
return [
/*
|--------------------------------------------------------------------------
| Default Command
|--------------------------------------------------------------------------
|
| Laravel Zero will always run the command specified below when no command name is
| provided. Consider update the default command for single command applications.
| You cannot pass arguments to the default command because they are ignored.
|
*/
'default' => NunoMaduro\LaravelConsoleSummary\SummaryCommand::class,
/*
|--------------------------------------------------------------------------
| Commands Paths
|--------------------------------------------------------------------------
|
| This value determines the "paths" that should be loaded by the console's
| kernel. Foreach "path" present on the array provided below the kernel
| will extract all "Illuminate\Console\Command" based class commands.
|
*/
'paths' => [app_path('Commands')],
/*
|--------------------------------------------------------------------------
| Added Commands
|--------------------------------------------------------------------------
|
| You may want to include a single command class without having to load an
| entire folder. Here you can specify which commands should be added to
| your list of commands. The console's kernel will try to load them.
|
*/
'add' => [
// ..
],
/*
|--------------------------------------------------------------------------
| Hidden Commands
|--------------------------------------------------------------------------
|
| Your application commands will always be visible on the application list
| of commands. But you can still make them "hidden" specifying an array
| of commands below. All "hidden" commands can still be run/executed.
|
*/
'hidden' => array_merge(
[
NunoMaduro\LaravelConsoleSummary\SummaryCommand::class,
Symfony\Component\Console\Command\DumpCompletionCommand::class,
Illuminate\Console\Scheduling\ScheduleRunCommand::class,
Illuminate\Console\Scheduling\ScheduleListCommand::class,
Illuminate\Console\Scheduling\ScheduleFinishCommand::class,
Illuminate\Foundation\Console\VendorPublishCommand::class,
LaravelZero\Framework\Commands\StubPublishCommand::class,
],
Phar::running() ? [
Illuminate\Database\Console\Migrations\FreshCommand::class,
Illuminate\Database\Console\Migrations\InstallCommand::class,
Illuminate\Database\Console\Migrations\MigrateCommand::class,
Illuminate\Database\Console\WipeCommand::class,
] : [],
),
/*
|--------------------------------------------------------------------------
| Removed Commands
|--------------------------------------------------------------------------
|
| Do you have a service provider that loads a list of commands that
| you don't need? No problem. Laravel Zero allows you to specify
| below a list of commands that you don't to see in your app.
|
*/
'remove' => array_merge(
[],
Phar::running() ? [
Illuminate\Database\Console\Factories\FactoryMakeCommand::class,
Illuminate\Database\Console\Seeds\SeedCommand::class,
Illuminate\Database\Console\Seeds\SeederMakeCommand::class,
Illuminate\Database\Console\Migrations\MigrateMakeCommand::class,
Illuminate\Database\Console\Migrations\RefreshCommand::class,
Illuminate\Database\Console\Migrations\ResetCommand::class,
Illuminate\Database\Console\Migrations\RollbackCommand::class,
Illuminate\Database\Console\Migrations\StatusCommand::class,
Illuminate\Database\Console\WipeCommand::class,
Illuminate\Foundation\Console\ModelMakeCommand::class,
LaravelZero\Framework\Commands\BuildCommand::class,
LaravelZero\Framework\Commands\InstallCommand::class,
LaravelZero\Framework\Commands\MakeCommand::class,
LaravelZero\Framework\Commands\RenameCommand::class,
LaravelZero\Framework\Commands\StubPublishCommand::class,
LaravelZero\Framework\Commands\TestMakeCommand::class,
] : [],
Helpers::installedViaPhar() === false ? [
LaravelZero\Framework\Components\Updater\SelfUpdateCommand::class,
] : [],
Helpers::installedViaDocker() === false ? [
App\Commands\Delete::class,
] : [],
),
];