Edit Environment file inside a modal.
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';
})
];
}
The MIT License (MIT). Please see License File for more information.