We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now the plugin works great with laravel using env('SOMETHING').
env('SOMETHING')
However I like to create a second helper for when the app just won't run without an environment variable defined.
function env_or_throw($key, $default = null) { return env( $key, $default ?? fn() => throw new \Exception("Missing require environment variable '{$key}'.") ); }
It would be great if we could specify that env_or_throw or my_special_env_function was an env alias.
env_or_throw
my_special_env_function
env
The text was updated successfully, but these errors were encountered:
Hi. Good idea. I'll try to make a setting for that.
And you gave a great idea for a new feature for Laravel Idea plugin :) Thanks
Sorry, something went wrong.
No branches or pull requests
Right now the plugin works great with laravel using
env('SOMETHING')
.However I like to create a second helper for when the app just won't run without an environment variable defined.
It would be great if we could specify that
env_or_throw
ormy_special_env_function
was anenv
alias.The text was updated successfully, but these errors were encountered: