butcherman/artisan-dev-commands

Artisan CLI 中运行的命令集合,可让您在 Laravel 项目的开发故障排除中更加轻松

0.0.8 2024-04-22 00:46 UTC

This package is auto-updated.

Last update: 2024-09-22 01:42:35 UTC


README

Artisan 命令的简单集合,有助于使您的开发故障排除更加轻松。

GitHub release License: MIT Latest Stable Version

要求

  • PHP 7.2 或更高版本
  • Laravel 5.5 或更高版本

安装

composer require butcherman/artisan-dev-commands --dev

用法

日志文件命令

清除当前日志文件的内容,同时保留文件本身

php artisan log:clean

删除日志目录中的所有日志文件(仅删除扩展名为 .log 的文件)

php artisan log:purge

在 app/Traits 文件夹中创建一个新的 Laravel 特性

php artisan make:trait TraitName    //  or  Folder/TraitName

在 /resources/js/Pages 路径下创建一个新的 Vue 页面,带有基本的 Vue 模板。在子文件夹中添加新的 Vue 页面使用点(.)语法,类似于视图语法

php artisan make:page Folder.pageName   //  To add the component using the Vue's Options API, add the --optionsApi flag

在 /resources/js/Components 路径下创建一个新的 Vue 组件,带有基本的 Vue 模板。在子文件夹中添加新的 Vue 组件使用点(.)语法,类似于视图语法

php artisan make:vuecomponent Folder.componentName      //  To add the component using the Vue's Options API, add the --optionsApi flag

版权所有 © 2019-2022 Butcherman

软件按“原样”提供,不提供任何明示或暗示的保证,包括但不限于适销性、特定目的的适用性和非侵权性保证。在任何情况下,作者或版权所有者不应对任何索赔、损害或其他责任承担责任,无论此类责任是基于合同、侵权或其他方式,是否因软件或软件的使用或其他交易而产生。

有关更多信息,请参阅 LICENSE 文件