承接 lokyfordev/lokyhelpme 相关项目开发

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

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

lokyfordev/lokyhelpme

最新稳定版本:1.0.0

Composer 安装命令:

composer require lokyfordev/lokyhelpme

包简介

Interactive Laravel Artisan assistant for beginners

README 文档

README

Interactive Artisan assistant for Laravel beginners.

lokyhelpme helps users generate Laravel classes and migrations through guided CLI questions, so they do not need to remember Artisan syntax.

Install

composer require lokyfordev/lokyhelpme

Run:

php artisan lokyhelpme

Main Command

php artisan lokyhelpme

Startup output:

----------------------------------
LokyHelpMe Laravel Assistant
Interactive Laravel command generator
----------------------------------

Menu

  1. Model
  2. Controller
  3. Migration
  4. Seeder
  5. Factory
  6. Policy
  7. Middleware
  8. Request Validation
  9. Event
  10. Listener
  11. Job
  12. Command
  13. Resource
  14. Pivot Model
  15. API Controller

What Gets Generated

Option Artisan command
Model make:model (-m, -f, -s, -c optional)
Controller make:controller (Normal, --resource, --api)
Migration make:migration or make:model -m (guided)
Seeder make:seeder
Factory make:factory --model=Model
Policy make:policy --model=Model
Middleware make:middleware
Request Validation make:request
Event make:event
Listener make:listener (optional --event)
Job make:job
Command make:command
Resource make:resource
Pivot Model make:model --pivot
API Controller make:controller --api

Migration Assistant

When selecting Migration, users get:

  1. Create new table
  2. Create model with migration
  3. Modify existing table

Column Builder

For all migration flows, LokyHelpMe can ask for columns interactively.

  • Type end to finish adding columns
  • Supported types:
    • string, text, integer, bigInteger, boolean
    • decimal, float, date, dateTime, timestamp
    • enum, json, uuid
  • Supports options:
    • nullable
    • unique
    • default value
    • string length
    • decimal/float precision + scale

Enum values are entered once using commas or spaces:

admin superadmin helper

Generated:

$table->enum('role', ['admin', 'superadmin', 'helper']);

Validation And UX

  • Empty input is rejected
  • Class names are validated against PHP naming conventions
  • Table/column names are validated for migration-safe format
  • Lowercase/dirty class input is normalized:
    • seler -> Seler
    • user_profile -> UserProfile
  • Every command is previewed before execution
  • User must confirm execution

Database Table Detection

For Modify existing table, LokyHelpMe fetches tables from the active Laravel DB connection and lists them for selection.

If DB connection fails:

Database connection failed.
Check your .env configuration.

If no tables are found:

No tables found in the current database.

Logging

LokyHelpMe logs generation actions to:

storage/logs/lokyhelpme.log

Examples:

  • User generated model: Post
  • User modified table: users
  • User created event: UserRegistered

Package Structure

lokyhelpme/
├── src/
│   ├── Console/
│   │   └── LokyHelpMeCommand.php
│   ├── Services/
│   │   ├── ModelGenerator.php
│   │   ├── ControllerGenerator.php
│   │   ├── MigrationGenerator.php
│   │   ├── EventGenerator.php
│   │   ├── ListenerGenerator.php
│   │   ├── JobGenerator.php
│   │   ├── CommandGenerator.php
│   │   ├── ResourceGenerator.php
│   │   ├── PivotModelGenerator.php
│   │   ├── TableInspector.php
│   │   ├── InputValidator.php
│   │   └── CommandPreview.php
│   └── LokyHelpMeServiceProvider.php
└── composer.json

Compatibility

  • PHP ^8.1
  • Laravel 10, 11, 12 (via Illuminate components)

Auto-discovery

composer.json includes:

"extra": {
  "laravel": {
    "providers": [
      "LokyHelpMe\\LokyHelpMeServiceProvider"
    ]
  }
}

Development

Run tests:

php artisan test

Run formatter:

vendor/bin/pint

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固