repat/cli-crud 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

repat/cli-crud

Composer 安装命令:

composer require repat/cli-crud

包简介

CLI CRUD admin panel for Laravel, inspired by Filament and Nova

README 文档

README

Latest Version on Packagist Total Downloads License PHP Version

Main screen

A CLI CRUD admin panel for Laravel, inspired by Filament and Laravel Nova. Built with laravel/prompts and nunomaduro/termwind.

Requirements

  • PHP ^8.4
  • Laravel 12.x | 13.x

Installation

composer require repat/cli-crud

The service provider will be automatically registered.

Configuration

Publish the configuration file:

php artisan vendor:publish --tag=cli-crud-config

This will create config/cli-crud.php:

return [
    'resources' => [
        'path' => app_path('CliCrud/Resources'),
        'namespace' => 'App\\CliCrud\\Resources',
    ],
    'actions' => [
        'path' => app_path('CliCrud/Actions'),
        'namespace' => 'App\\CliCrud\\Actions',
    ],
    'pagination' => [
        'per_page' => 15,
        'relation_per_page' => 10,
    ],
    'authorization' => [
        'enabled' => false,
    ],
];

Usage

Running the CLI

php artisan cli-crud

This opens an interactive menu where you can:

  • Select a resource (Model)
  • List records (paginated)
  • Search for records
  • View record details
  • Create new records
  • Delete records (soft delete, force delete, restore)
  • Run an action for (a) record(s)
  • View custom cards & charts for metrics
  • View images (kitty and iTerm protocol)

Screenshots

Selection screen

Resources

See docs/RESOURCES.md for creating resources, the generated structure, auto-generated fields from a model, and available properties.

Fields

See docs/FIELDS.md for all field types, relations, and options.

Search

See docs/SEARCH.md for declaring searchable fields, the $search override, and custom search engine integration.

Actions

See docs/ACTIONS.md for creating and attaching Nova-style actions, including queued and destructive variants.

Cards

See docs/CARDS.md for Chart, Image and Custom cards in the detail view.

Authorization

See docs/AUTHORIZATION.md for enabling Laravel Gates/Policies integration.

Roadmap

  • Dashboards
  • Action log (audit trail)
  • Plugins
  • Export (CSV, JSON)
  • TUI testing
  • Code Cleanup

Testing

composer test

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固