File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/Illuminate/Database/Console Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ class PruneCommand extends Command
24
24
protected $ signature = 'model:prune
25
25
{--model=* : Class names of the models to be pruned}
26
26
{--except=* : Class names of the models to be excluded from pruning}
27
+ {--path=* : Absolute path(s) to directories where models are located}
27
28
{--chunk=1000 : The number of models to retrieve per chunk of models to be deleted}
28
- {--pretend : Display the number of prunable records found instead of deleting them}
29
- {--path=* : Absolute path(s) to directories where models are located} ' ;
29
+ {--pretend : Display the number of prunable records found instead of deleting them} ' ;
30
30
31
31
/**
32
32
* The console command description.
@@ -149,12 +149,14 @@ protected function models()
149
149
/**
150
150
* Get the path where models are located.
151
151
*
152
- * @return string|string[]
152
+ * @return string[]|string
153
153
*/
154
154
protected function getPath ()
155
155
{
156
156
if (! empty ($ path = $ this ->option ('path ' ))) {
157
- return $ path ;
157
+ return collect ($ path )->map (function ($ path ) {
158
+ return base_path ($ path );
159
+ })->all ();
158
160
}
159
161
160
162
return app_path ('Models ' );
You can’t perform that action at this time.
0 commit comments