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
Install via composer:
composer require ercdev/erc-news:~1.0.0Publish configurations and resources:
php artisan vendor:publishAdd the service provider entry in
config\app.php:ERCDEV\ERCNews\ERCNewsServiceProvider::class,Include
erc-news.blade.phpon 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
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-27