定制 ajimoti/modelplus 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ajimoti/modelplus

最新稳定版本:v1.0.1

Composer 安装命令:

composer require ajimoti/modelplus

包简介

An intuitive UI for browsing Laravel Eloquent models with smart relationship handling

README 文档

README

ModelPlus is an intuitive UI package for Laravel that provides a powerful and user-friendly interface for browsing your Eloquent models. It automatically discovers your models and creates a dynamic, interactive dashboard for viewing your application's data.

Installation

You can install the package via composer:

composer require ajimoti/modelplus

Available Features

  • Automatic Model Discovery: Automatically scans and discovers all Eloquent models in your application
  • Interactive Dashboard: Clean, modern UI built with Tailwind CSS and Alpine.js
  • Smart Relationship Handling:
    • Automatically detects and displays model relationships
    • Interactive hover cards for related models
    • Smart navigation between related models
  • Intelligent Display:
    • Automatically determines the best display column for each model
    • Smart formatting for different data types
    • Handles null values and boolean states elegantly
  • Advanced Table Features:
    • Sortable columns
    • Real-time search
    • Pagination
    • Sticky first column
    • Responsive design
  • Security:
    • Configurable authentication requirements
    • Debug mode protection
    • Middleware-based access control

Screenshots

Screenshot 1

Coming Soon

  • Record management (Create, Edit, Delete operations)
  • Detailed record view
  • Advanced filtering
  • Bulk actions
  • Custom display rules
  • Export functionality
  • And more!

Configuration

The package can be configured via the config/modelplus.php file:

  • Define custom model paths
  • Configure route prefix and middleware
  • Set pagination preferences
  • Specify hidden fields
  • Control authentication requirements

Security

By default, ModelPlus is only accessible in debug mode or to users with the access-modelplus permission. This behavior can be customized in the configuration file.

Usage

Once installed, navigate to /modelplus in your browser to access the dashboard. The interface will automatically display all discovered models in a sidebar, allowing you to:

  • Browse records for each model
  • View relationships between models
  • Sort and search records
  • Navigate through related data
  • View detailed information via hover cards

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-20