marianvlad / nova-env-card
A Laravel Nova card for editing .env file .
Installs: 10 746
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 1
Open Issues: 2
Language:Vue
Requires
- php: >=7.1.0
- laravel/nova: *
This package is not auto-updated.
Last update: 2024-12-23 07:59:03 UTC
README
Edit Environment file inside a modal.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
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
.
// in app/Providers/NovaServiceProvider.php // ... public function cards() { return [ // ... (new \Marianvlad\NovaEnvCard\NovaEnvCard)->canSee(function ($request) { return $request->user()->role == 'admin'; }) ]; }
License
The MIT License (MIT). Please see License File for more information.