artisan-view
artisan-view copied to clipboard
Add support for wildcard characters when removing a view
php artisan scrap:view folder.* --force
should remove all views in folder/
. The wildcard character can only be used at the end of the argument, and will only work for removing files, not folders. So using php artisan scrap:view posts.*.index
would not work in a situation like this:
posts/
|-authors/
| | index.blade.php
| | show.blade.php
--comments/
| index.blade.php
| show.blade.php
With the above situation, php artisan scrap:view posts.*
would only remove the top-level files in the posts/
folder, the authors/
and comments/
folders (or files in them) will not be affected.