项目作者: marianvlad

项目描述 :
.env editor Inside Laravel Nova Card
高级语言: Vue
项目地址: git://github.com/marianvlad/nova-env-card.git
创建时间: 2018-08-24T20:41:47Z
项目社区:https://github.com/marianvlad/nova-env-card

开源协议:MIT License

下载


Nova Environment Editor Card

Latest Version on Packagist
Total Downloads

Edit Environment file inside a modal.




Installation

You can install the package in to a Laravel app that uses Nova via composer:

  1. composer require marianvlad/nova-env-card

Next up, you must register the card Nova. This is typically done in the cards method of the NovaServiceProvider.

  1. // in app/Providers/NovaServiceProvider.php
  2. // ...
  3. public function cards()
  4. {
  5. return [
  6. // ...
  7. (new \Marianvlad\NovaEnvCard\NovaEnvCard)->canSee(function ($request) {
  8. return $request->user()->role == 'admin';
  9. })
  10. ];
  11. }

License

The MIT License (MIT). Please see License File for more information.