@vincent15000 Yes but with important caveats.
Laravel’s configuration system is the correct layer to expose values to Blade.
create new file in the config folder. For example config/services.php
<?php
return [
'per_page' => env('PER_PAGE', 15),
];
In your blade you can now do the following
{{ config('services.per_page') }}
DO NOT DO THE FOLLOWING IN YOUR BLADE!!!
{{ env('APP_ENV') }}
The above is how you do it correctly in Laravel.
However your question was about Envoy and that works differently.
Envoy work differently let me explain
Envoy runs outside the Laravel HTTP runtime, essentially as a standalone PHP script for deployment tasks.
Here, env() works fine because Envoy is not using cached configs.
Envoy reads the .env file directly when it runs, so there’s no “config caching” problem like in Laravel Blade.
For example
@task('deploy')
echo "{{ env('APP_ENV') }}"
@endtask