{"id":2474,"date":"2025-07-18T09:56:47","date_gmt":"2025-07-18T09:56:47","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.in\/?p=2474"},"modified":"2025-07-18T09:57:17","modified_gmt":"2025-07-18T09:57:17","slug":"what-is-laravel-envoy","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2025\/07\/18\/what-is-laravel-envoy\/","title":{"rendered":"What is Laravel Envoy?"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">\ud83d\udd38 <strong>English:<\/strong><\/h4>\n\n\n\n<p>Laravel Envoy is like a <strong>task runner<\/strong>. It helps you write simple scripts (in a file called <code>Envoy.blade.php<\/code>) to run multiple commands on your server with just <strong>one command<\/strong>.<\/p>\n\n\n\n<p>You don\u2019t need to manually SSH and type each command \u2014 just write them once in Envoy and run them any time.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd38 <strong>Hindi:<\/strong><\/h4>\n\n\n\n<p>Laravel Envoy \u090f\u0915 \u0910\u0938\u093e \u091f\u0942\u0932 \u0939\u0948 \u091c\u093f\u0938\u0938\u0947 \u0906\u092a server \u092a\u0930 \u0915\u094b\u0908 \u092d\u0940 \u0915\u093e\u092e (\u091c\u0948\u0938\u0947 deploy \u0915\u0930\u0928\u093e, migration \u091a\u0932\u093e\u0928\u093e, cache clear \u0915\u0930\u0928\u093e) \u090f\u0915 \u0939\u0940 command \u0938\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964<br>\u0906\u092a\u0915\u094b \u092c\u093e\u0930-\u092c\u093e\u0930 SSH \u092e\u0947\u0902 \u091c\u093e\u0915\u0930 command \u0928\u0939\u0940\u0902 \u091a\u0932\u093e\u0928\u0940 \u092a\u0921\u093c\u0924\u0940 \u2014 \u0938\u092c \u0915\u093e\u092e \u090f\u0915 Envoy script \u092e\u0947\u0902 define \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>Real-World Example:<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83c\udfaf Use Case:<\/h4>\n\n\n\n<p>You have a Laravel project hosted on a <strong>production server<\/strong>.<br>Whenever you push new code, you want to:<\/p>\n\n\n\n<ul>\n<li>Pull the latest code from Git<\/li>\n\n\n\n<li>Run migrations<\/li>\n\n\n\n<li>Clear cache<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>Basic Syntax (<code>Envoy.blade.php<\/code>)<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">bladeCopyEdit<code>@servers(['production' =&gt; 'user@your-server.com'])\n\n@task('deploy', ['on' =&gt; 'production'])\n    cd \/var\/www\/your-project\n    git pull origin main\n    php artisan migrate --force\n    php artisan config:cache\n@endtask\n<\/code><\/pre>\n\n\n\n<p>Now run it like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bashCopyEdit<code>envoy run deploy<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udd38 English: Laravel Envoy is like a task runner. It helps you write simple scripts&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2474"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=2474"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2474\/revisions"}],"predecessor-version":[{"id":2475,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2474\/revisions\/2475"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=2474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=2474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=2474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}