morcen/omni 问题修复 & 功能扩展

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

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

morcen/omni

Composer 安装命令:

composer require morcen/omni

包简介

A modern UI dashboard for selected Laravel Artisan commands

README 文档

README

Tests

Omni | The Artisan UI

Omni Dashboard

Omni is a lightweight in-app dashboard for Laravel applications. It gives you a browser-based view into common application diagnostics and exposes a small set of safe workflow helpers, so you can inspect your app without bouncing between multiple Artisan commands.

At the moment, Omni focuses on:

  • An application dashboard with environment, cache, driver, database, migration, schedule, and event insights
  • A routes explorer with filtering plus route cache and clear actions
  • A make:model UI for generating Eloquent models and related files

Some sections are already scaffolded in the UI but are not implemented yet: Logs, Queue, Cache, and Config.

Requirements

  • PHP ^8.3
  • Laravel ^12.0

Installation

Install the package with Composer:

composer require morcen/omni

The service provider is auto-discovered by Laravel.

If you want to customize the package configuration, publish the config file:

php artisan vendor:publish --tag=omni-config

What It Does

Omni adds a protected web UI to your Laravel application, mounted at /omni by default.

Dashboard

The dashboard summarizes useful application state in one place:

  • App name, environment, Laravel version, PHP version, URL, locale, timezone, debug mode, and maintenance mode
  • Cache status for config, routes, events, and compiled views
  • Active database, cache, queue, mail, session, log, and broadcasting drivers
  • Database availability, current connection name, and table count
  • Route totals and method breakdown
  • Migration totals, ran migrations, and pending migrations
  • Registered scheduled tasks and their next run time
  • Registered events and listener counts

Omni Dashboard

Routes

The routes screen provides:

  • A searchable table of registered routes
  • Filtering by method, name, action, middleware, domain, and path
  • Vendor-route filtering
  • Buttons to run route:cache and route:clear

Omni Routes

Make

Model Generator

The model generator provides a UI for php artisan make:model and supports:

  • --all
  • --controller
  • --factory
  • --force
  • --migration
  • --morph-pivot
  • --policy
  • --seed
  • --pivot
  • --resource
  • --api
  • --requests
  • --test
  • --pest
  • --phpunit

Omni Make

Access Control

Omni is protected by middleware and a Laravel gate named viewOmni.

By default, the package defines:

Gate::define('viewOmni', function ($user = null) {
    return app()->environment('local');
});

That means Omni is available in the local environment out of the box, and denied elsewhere unless you override the gate in your application.

Example override in your app:

use Illuminate\Support\Facades\Gate;

Gate::define('viewOmni', function ($user) {
    return $user?->is_admin === true;
});

You can also layer your own middleware through configuration, for example:

'middleware' => ['web', 'auth'],

Configuration

The package ships with config/omni.php.

return [
    'path' => env('OMNI_PATH', 'omni'),
    'middleware' => ['web'],
    'enabled' => env('OMNI_ENABLED', true),
    'features' => [
        'dashboard' => true,
        'make' => true,
        'routes' => true,
        'logs' => true,
        'queue' => true,
        'cache' => true,
        'config' => true,
    ],
    'routes' => [
        'strip_namespace' => 'App\\Http\\Controllers\\',
        'show_vendor_routes' => true,
    ],
];

Available Options

  • path: URI prefix for the dashboard
  • middleware: middleware applied to Omni routes before Omni's authorization gate
  • enabled: master switch for enabling or disabling the package routes
  • features.*: turn individual UI sections on or off
  • routes.strip_namespace: removes a namespace prefix from route action display
  • routes.show_vendor_routes: reserved config for route visibility behavior

Usage

After installation, start your Laravel app and visit:

/omni

If you changed the path, use your configured OMNI_PATH or omni.path value instead.

Contributing

Contributions are welcome. If you want to improve Omni, fix a bug, or add one of the placeholder modules, a pull request is appreciated.

Suggested Workflow

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes with tests.
  4. Run formatting and the test suite.
  5. Open a pull request with a clear summary of the change.

Local Development

Install dependencies:

composer install

Run the test suite:

composer test

Run static analysis:

composer analyse

Format the codebase:

composer format

Testing

This package uses:

  • Pest for tests
  • Orchestra Testbench for package testing
  • Larastan / PHPStan for static analysis
  • Laravel Pint for formatting

Roadmap

The current UI already includes placeholders for future sections:

  • Logs
  • Queue
  • Cache
  • Config

The full project roadmap, including milestone tasks and the release schedule, lives in ROADMAP.md.

Security

If you discover a security issue, please avoid opening a public issue with exploit details. Reach out privately to the maintainer instead.

License

This package is open-sourced software licensed under the MIT license.

morcen/omni 适用场景与选型建议

morcen/omni 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 morcen/omni 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

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