artisan-view icon indicating copy to clipboard operation
artisan-view copied to clipboard

Add support for wildcard characters when removing a view

Open svenluijten opened this issue 6 years ago • 0 comments

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.

svenluijten avatar Oct 07 '18 20:10 svenluijten