A simple OpenCode Plugin to block access to .env files.
On Linux, save env-protection.ts to ~/.config/opencode/plugin/env-protection.ts.
import type { Plugin } from "@opencode-ai/plugin"| <?php | |
| namespace {{ namespace }}; | |
| use App\Http\Requests\Store{{ class }}Request; | |
| use Illuminate\Console\Command; | |
| use Lorisleiva\Actions\Concerns\AsAction; | |
| use Lorisleiva\Actions\Concerns\WithAttributes; | |
| <?php | |
| namespace App\Console\Commands; | |
| // This is an example Laravel Command | |
| // Just scaffolding for use of: | |
| // https://github.com/sverraest/revolut-php | |
| //include RevolutPHP with composer | |
| //Create this command. |