Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar
Level 27

Laravel envoy

I want to deploy a project to the server. I am using shared web hosting.

Is it possible to use laravel envoy?

ref: https://laravel.com/docs/6.x/envoy

envoy.blade.php

@servers(['localhost' => '127.0.0.1', 'www' => ['[email protected]']])

{{-- envoy run deploy --}}
@task('deploy', ['on' => 'www'])
        cd xampp/htdocs/aws_admin
        php artisan down --message="Deploying New Code"
        git pull origin master
        composer install --optimize-autoloader --no-dev
        php artisan config:clear
        php artisan config:cache
        php artisan route:clear
        php artisan route:cache
        npm install --production
        php artisan migrate --force
        php artisan up
@endtask

Will this be possible?

composer global require laravel/envoy

F:\xampp\htdocs\aws_admin>envoy run deploy 'envoy' is not recognized as an internal or external command, operable program or batch file.

Any clue why?

0 likes
1 reply

Please or to participate in this conversation.