定制 ercdev/erc-news 二次开发

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

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

ercdev/erc-news

Composer 安装命令:

composer create-project ercdev/erc-news

包简介

Static display of news from configuration files to laravel blades.

README 文档

README

Display information to the user about the expiration of the login password and critical news of the system.

Considerations

Routes

This package adds the routes under ercdev/erc-news. Please verify that these don't collide with your existing routes.

Dependencies

  • Your project should be running Laravel 5.1 or higher.

Installation

  1. Install via composer:

        composer require ercdev/erc-news:~1.0.0
    
  2. Publish configurations and resources:

        php artisan vendor:publish
    
  3. Add the service provider entry in config\app.php:

        ERCDEV\ERCNews\ERCNewsServiceProvider::class,
    
  4. Include erc-news.blade.php on your custom view:

        @include('vendor.erc-news.erc-news')
    

Configuration

The following elements are configurable:

  • route: (default: erc-news) Change to customize in the browser. This is just cosmetic.
  • middleware: (default: ['auth']) Change to [] if you doesn`t check user access.
  • html_login_hint: (default: <b> First <br/> Second </br>) Change to display news in paragraph formatting on top of block.
  • html_login_info: (default: <li>First</li><li>Second</li>) Change to display news in lists formatting on bottom of block.
  • password_expiry_field: (default: expiry_time) Change this to column name in your db of users table.
  • password_expiry_notice_message: (default: Your password expired on :?. You can change it now ) Change to display notification of expiring password.
  • password_expiry_notice_period: (default: 14) Change to display notification notice period.
  • password_change_url: (default: /change_password) Change to display url for changing password.

You can now change the default value in /app/config/erc-news.php as desired. Deleting the /app/config/erc-news.php file will revert back to the default settings.

Usage

That was it!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固