lilianbellini/plugincmslaravel 问题修复 & 功能扩展

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

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

lilianbellini/plugincmslaravel

最新稳定版本:1.2.7

Composer 安装命令:

composer require lilianbellini/plugincmslaravel

包简介

A CMS plugin for Laravel

README 文档

README

License

This project is licensed under the MIT License. See the LICENSE file for details.

Requirements

  • Laravel project
  • Laravel Breeze for authentication

Installation Steps

  1. Add the package to your project: composer require systemin/plugincmslaravel

  2. Run the database migrations: php artisan migrate

  3. Seed the initial data for the CMS: php artisan plugin-cms:seed

  4. Install Bootstrap Icons: npm i bootstrap-icons

  5. Create a public directory for CMS assets: mkdir public/assets

  6. Copy the CMS assets to the public directory: cp -r vendor/systemin/plugincmslaravel/assets/cms public/assets

Configuration Steps

User Model

In your app/Models/User.php, add the UserTrait:

use LilianBellini\PluginCmsLaravel\Traits\UserTrait; // Import the trait

class User extends Authenticatable { use UserTrait; // Include the trait

// Add the following attributes to the fillable array:
protected $fillable = [
    'role_id',
    'avatar',
    'bio',
    // Other attributes
];

}

App Configuration

In the config/app.php file, add the following:

'langages' => ['fr', 'en'],

CSS Setup

In your resources/css/app.css file, import the CMS styles:

@import '../../vendor/systemin/plugincmslaravel/resources/css/main.css';

Follow these steps to fully integrate the CMS into your Laravel project.

统计信息

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

GitHub 信息

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

其他信息

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