承接 amdadulshakib/cmsaddoncommands 相关项目开发

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

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

amdadulshakib/cmsaddoncommands

最新稳定版本:v1.0.6

Composer 安装命令:

composer require amdadulshakib/cmsaddoncommands

包简介

A set of reusable Laravel Artisan commands for CMS-based projects.

README 文档

README

This package provides Laravel Artisan commands to help you quickly scaffold and manage Addon modules for your CMS project. You can use these commands to generate models, controllers, and migrations inside your Addon structure, similar to native Laravel commands.

Installation

Install via Composer:

composer require amdadulshakib/cmsaddoncommands

Usage

All commands are available via Artisan. Replace {AddonName} with your Addon name and {ClassName} with your desired class name.

1. Create a New Addon

Command:

php artisan make:addon {AddonName}

Example:

php artisan make:addon Blog

2. Create a Model (with optional migration)

Command:

php artisan addon:model {AddonName} {ModelName}

With migration:

php artisan addon:model {AddonName} {ModelName} -m

Example:

php artisan addon:model Blog Post -m

3. Create a Controller

Command:

php artisan addon:controller {AddonName} {ControllerName}

Example:

php artisan addon:controller Blog PostController

4. Create a Migration

Command:

php artisan addon:migration {AddonName} {MigrationName}

Example:

php artisan addon:migration Blog create_posts_table

5. Run Addon Migrations

Command:

php artisan addon:migrate {AddonName}

Example:

php artisan addon:migrate Blog

6. Rollback Addon Migrations

Command:

php artisan addon:migrate:rollback {AddonName}

Example:

php artisan addon:migrate:rollback Blog

Notes

  • All generated files will be placed inside your Addon's folder (e.g., addons/Blog/Models/, Controllers/, Migrations/, Views/).
  • These commands are intended for developer use only. You can remove the package after development if you want to keep your production environment clean.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-09