定制 mymediamagnet/core 二次开发

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

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

mymediamagnet/core

Composer 安装命令:

composer require mymediamagnet/core

包简介

Laravel 5.1 CMS Core Package

关键字:

README 文档

README

This package is not currently stable. Many features are buggy and unfinished. Positive criticism and suggestions welcome. This package provides a core CMS framework for basic website development. Our objective is to create a framework that works similar to WordPress in terms of an easy to use content management system.

Features

  • Dashboard
  • Pages
  • Blog
  • Contact / Lead Management
  • Partials (Widgets to WordPress)
  • Custom Meta Fields
  • Menu Builder
  • Revolution Slider Configurator
  • User, Role & Permission Management

Installation

{
    "require": {
        "mymediamagnet/core": "dev-master"
    }
}

Then run a composer update

composer update

Configuration

Next, configure the service providers.

'providers' => array(
        // ...
        'Illuminate\Html\HtmlServiceProvider',
        'MyMediaMagnet\Core\App\CoreServiceProvider'
    ),

Next, add the following to your Exceptions/Handler Class (Suggestions on how to incorporate this into the package welcome)

if ($this->isHttpException($e))
        {
            $pagesController = new CmsRouting();
            return $pagesController->render($request->path());
            return $this->renderHttpException($e);
        }
        else
        {
            return parent::render($request, $e);
        }

Now publish the vendor asset

php artisan vendor:publish

Now run the core user migration command

php artisan core:user_migration

And then the core migration

php artisan core:core_migration

For the time being, you will also have to run the core update. This is the non-destructive way to update the databases and may be required on future commits.

php artisan core:update_migration

Finally, seed the database

php artisan core:core_seed

Users

Replace the content within the default User.php class

namespace App;

use MyMediaMagnet\Core\App\CoreUser;

class User extends CoreUser {


}

Usage

Views

After doing the vendor:publish command, the website folder will be copied into your root resources/views folder.

Custom Fields / Meta

Add a custom field to a page template:

@if($page->hasField('custom_field'))
    {{ $page->getField('custom_field') }}
@endif

Adding Partials and Sliders

Add a slider or partial to a page or post body (wysiwyg):

[partial-slug]
[slider-slug]

Add & Hide Admin Pages

An important aspect of the CMS is being able to extend it for individual project requirements.
After doing a vendor:publish, core.php will be copied to your config folder. The Admin menu is configured from this location.

Theming

In the core.php config file. Angular theming options.

Core - CustomCMS :: Laravel 5, Angular

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-28