lkovace18/laravel-presentation-mode 问题修复 & 功能扩展

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

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

lkovace18/laravel-presentation-mode

Composer 安装命令:

composer require lkovace18/laravel-presentation-mode

包简介

Laravel package for presenting sites still in develompment.

README 文档

README

  • If you need quick way present site in development to your client without worry theat anybody else will see it.
  • If you need to hide "stage" site from end consumers, and redirect them to yout real site

here is solution ...

Documentation

To get started, use Composer to add the package to your project's dependencies:

    composer require lkovace18/laravel-presentation-mode

Configuration

After installing the Laravel presentation mode, register the lKovace18\PresentationMode\PresentationModeServiceProvider in your config/app.php configuration file:

'providers' => [
    // Other service providers...

    lKovace18\PresentationMode\PresentationModeServiceProvider::class,

],

add setup your .env file:

PRESENTATION_MODE=true
PRESENTATION_KEY=<yourkey>

Advanced configuration

Publish configuration

php artisan vendor:publish --provider="lKovace18\PresentationMode\PresentationModeServiceProvider" --tag="config"

Edit configuration file config/presentation-mode.php to suit your needs.

If you want to modify under_development view you can publish it:

php artisan vendor:publish --provider="lKovace18\PresentationMode\PresentationModeServiceProvider" --tag="views"

Or you can make your own route and view and add it in config config/presentation-mode.php:

     /**
     * url of under development page
     */
    'under_development_url' => <your_in_development_url>,

If you want to modify translations for view publish:

php artisan vendor:publish --provider="lKovace18\PresentationMode\PresentationModeServiceProvider" --tag="translations"

If you want to make custom middleware you can add the PresentationMode facade to the aliases array in your app configuration file:

'PresentationMode' => lKovace18\PresentationMode\Facades\PresentationMode::class,

TODO

- finish and refactor tests
- make command for setting presentation mode on
- finish documentation

License

Laravel Presentation Mode is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固