承接 msazzuhair/laravel-artisan-destroy 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

msazzuhair/laravel-artisan-destroy

Composer 安装命令:

composer require msazzuhair/laravel-artisan-destroy

包简介

This is my package laravel-artisan-destroy

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

⚠️⚠️ Do not install this package on your production environment. ⚠️⚠️

A (maybe?) missing destroy command for anyone who has second thoughts. This will delete artisan-generated files from your project.

Let's say, you have generated some files using the artisan make command. Then you think of a better name, or the generated files don't have a proper name based on the Laravel naming convention. This simple package will help you clean up those messes.

Just replace your artisan make:... command with artisan destroy:... and you're good to go. These commands will also warn you if the file you are trying to delete is untracked or has uncommitted changes.

I have used some of these commands on my projects, so ️they should work.

Development Progress

Class Command Destroy Command Test
Cast destroy:cast
Channel destroy:channel
Component destroy:component
Controller destroy:controller
Console destroy:console
Event destroy:event
Exception destroy:exception
Factory destroy:factory
Job destroy:job
Listener destroy:listener
Mail destroy:mail
Middleware destroy:middleware
Migration destroy:migration
Model destroy:model
Notification destroy:notification
Observer destroy:observer
Policy destroy:policy
Provider destroy:provider
Request destroy:request
Resource destroy:resource
Rule destroy:rule
Scope destroy:scope
Seeder destroy:seeder
Test destroy:test
View destroy:view

Optional Requirements

  • Git. This package will check if the file to be deleted is tracked and clean. If git is not installed, you'll need to use the --force option or disable git checking through the config file.

Installation

You can install the package as a dev dependency via composer:

composer require --dev msazzuhair/laravel-artisan-destroy

You can publish the config file with:

php artisan vendor:publish --tag="laravel-artisan-destroy-config"

Usage

php artisan destroy:model <Model Name>

You can use artisan help to see all available options for each command. For example:

php artisan help destroy:model
Description:
  Delete an Eloquent model class

Usage:
  destroy:model [options] [--] <name>

Arguments:
  name                  The name of the model

Options:
  -a, --all             Delete a migration, seeder, factory, policy, resource controller, and form request classes for the model
  -c, --controller      Delete a controller for the model
  -f, --factory         Delete a factory for the model
      --force           Delete the class without prompting for confirmation
  -m, --migration       Delete a migration file for the model
      --policy          Delete a policy for the model
  -s, --seed            Delete a seeder for the model
  -R, --requests        Delete new form request classes and use them in the resource controller
  -t, --test            Delete any accompanying PHPUnit test for the model and every related classes that is going to also be deleted
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

msazzuhair/laravel-artisan-destroy 适用场景与选型建议

msazzuhair/laravel-artisan-destroy 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「Muhammad Azzuhair」 「laravel-artisan-destroy」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 msazzuhair/laravel-artisan-destroy 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 msazzuhair/laravel-artisan-destroy 我们能提供哪些服务?
定制开发 / 二次开发

基于 msazzuhair/laravel-artisan-destroy 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 12
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-05