rjcodes/rjcms 问题修复 & 功能扩展

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

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

rjcodes/rjcms

Composer 安装命令:

composer require rjcodes/rjcms

包简介

A lightweight Laravel CMS package for rapidly building admin dashboards with minimal frontend coding.

README 文档

README

A WordPress-style content management system for Laravel — an admin panel, a visual BREAD field-builder, media library, navigation menus, roles & permissions, site settings, and a public blog — installable into any Laravel 12/13 app.

composer require rjcodes/rjcms
php artisan rjcms:install

That's it. Visit /admin and sign in.

Requirements

  • PHP 8.3+
  • Laravel 12 or 13
  • Livewire 4

Installation

  1. Require the package:
    composer require rjcodes/rjcms
  2. Run the installer (publishes assets + config, migrates, seeds, creates your admin):
    php artisan rjcms:install
    You'll be prompted for an admin email and password. Non-interactive / CI:
    php artisan rjcms:install --admin-email="you@example.com" --admin-password="secret" --no-interaction
  3. Open /admin and log in.

Want demo content to explore the BREAD builder? Add --demo:

php artisan rjcms:install --demo

The installer is idempotent — safe to re-run after upgrades.

What you get

Feature Description
Admin panel WordPress-style dashboard at /admin.
BREAD builder Define content types and fields (text, image, relationship, repeater, …) visually — no migrations to write.
Media library Upload, browse and pick images; inline uploads from the rich-text editor.
Menus Drag-and-drop navigation builder, rendered via the menu('slug') helper.
Roles & permissions Powered by spatie/laravel-permission, with a super_admin that bypasses every gate.
Settings Typed, grouped site settings, read with the setting('key') helper.
Blog Public blog with categories at /blog.

Configuration

Publish and edit the config if you need to:

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

config/rjcms.php lets you change:

  • prefix — mount the admin panel somewhere other than /admin.
  • user_model — point the CMS at your User model (it must use Spatie's HasRoles trait). Defaults to the package's own User.
  • super_admin_role — the all-powerful role name.
  • relationship_models — models exposed in the BREAD relationship picker (add your own).
  • register_root_redirect — set true to redirect / → the admin panel.

Upgrading

composer update rjcodes/rjcms
php artisan migrate
php artisan vendor:publish --tag=rjcms-assets --force

Customising the views

Views are namespaced rjcms::. To override any of them, publish and edit:

php artisan vendor:publish --tag=rjcms-views

Published views land in resources/views/vendor/rjcms/ and take precedence.

Contributing / developing the package

See DEVELOPMENT.md — a from-scratch guide to how this package is built (service providers, publishing, Testbench, Packagist). Run the test suite with:

composer install
vendor/bin/pest

License

MIT.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固