File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Illuminate/Database/Console Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ class PruneCommand extends Command
23
23
{--model=* : Class names of the models to be pruned}
24
24
{--except=* : Class names of the models to be excluded from pruning}
25
25
{--chunk=1000 : The number of models to retrieve per chunk of models to be deleted}
26
- {--pretend : Display the number of prunable records found instead of deleting them} ' ;
26
+ {--pretend : Display the number of prunable records found instead of deleting them}
27
+ {--default-path=Models : The default path where models are located} ' ;
27
28
28
29
/**
29
30
* The console command description.
@@ -121,7 +122,7 @@ protected function models()
121
122
*/
122
123
protected function getDefaultPath ()
123
124
{
124
- return app_path (' Models ' );
125
+ return app_path ($ this -> option ( ' default-path ' ) );
125
126
}
126
127
127
128
/**
You can’t perform that action at this time.
0 commit comments