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

Behram Khattak's avatar

Laravel Sail

Why is replacing the PHP keyword with SAIL necessary when I have to run artisan commands while working with Laravel Sail and Docker?

0 likes
2 replies
Sergiu17's avatar

usually when you use Sail, you don't have PHP installed on your local machine, so sail artisan will run php from the container

Snapey's avatar

Saves you from having to SSH into the container and running commands from there

Please or to participate in this conversation.