Skip to content

Pruning Models command #38900

Discussion options

You must be logged in to vote

The symfony commands detect commands in the same ways as the autocomplete in a terminal.

php artisan route:clear
php artisan route:clea
php artisan route:cle
php artisan route:cl

All of these will execute route:clear because there is only one possibility for route:cl. But when the name is ambiguous symfony will show an error:

php artisan route:c

  Command "route:c" is ambiguous.                                          
  Did you mean one of these?                                               
      route:cache Create a route cache file for faster route registration  
      route:clear Remove the route cache file. 

And since prune is the only command in the model namespace you can actua…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mahmoudmohamedramadan
Comment options

Answer selected by mahmoudmohamedramadan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants