butcherman / artisan-dev-commands
A collection of commands to run in the Artisan CLI that will make development troubleshooting your Laravel project a little easier
Installs: 1 399
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- illuminate/support: >=7.0
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: >=8.0
README
A simple collection of Artisan commands to help make your development and troubleshooting a little easier.
Requirements
- PHP 7.2 or Higher
- Laravel 5.5 or Higher
Installation
composer require butcherman/artisan-dev-commands --dev
Usage
Log File Commands
Clear the contents of the current log file while keeping the file itself in tact:
php artisan log:clean
Delete all log files in the Log directory (will only remove files with the .log extension)
php artisan log:purge
Create a new Laravel Trait in the app/Traits folder
php artisan make:trait TraitName // or Folder/TraitName
Create a new Vue page located at /resources/js/Pages with a basic Vue template. Adding a new Vue page in a sub folder uses the dot (.) syntax similar to the View syntax
php artisan make:page folder.pageName // To add the component using the Vue's Options API, add the --optionsApi flag
Create a new Vue component located at /resources/js/Components with a basic Vue template. Adding a new Vue component in a sub folder uses the dot (.) syntax similar to the View syntax
php artisan make:vuecomponent folder.componentName // To add the component using the Vue's Options API, add the --optionsApi flag
Create a new Vue form component located at /resources/js/Forms with a basic form template. Adding a new Vue component in a sub folder uses the dot (.) syntax similar to the View syntax
php artisan make:form folder.formName // To add the form using the Vue's Options API, add the --optionsApi flag
Copyright © 2019-2025 Butcherman
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
See the LICENSE file for additional information