![]() ![]() Start sail, the first time you run this it will take a while whilst all the files are downloaded, future calls are much quicker./vendor/bin/sail up Use -dev to install into dev dependencies. Note you still need PHP installed so you can run composer to install sail on existing projects. You will need docker to be installed, if you don't have docker you can download it at Sail is a Laravel package, which means you can use a fresh version of Laravel or install it in existing projects. Sail is a tool for using docker without needing to use docker commands directly, it builds from an image that installs the latest versions of PHP, Nginx and MySQL. I hope this info helps someone else get this all working.I'm trying out Laravel Sail for my local development, this post serves as documenting the process and getting PhpStorm to play nice with Sail. In this case, you can get the host ip address by running the following command: docker inspect -f env file: SAIL_XDEBUG_CONFIG="client_host=" If you're on linux, you also need to add this to your. Or, if you want the develop mode as well you can add: SAIL_XDEBUG_MODE=develop,debug If you're on Windows/WSL2 all you need to do is add the following line(s) to your. env vars that you can use to change how XDebug works with Sail. Thank you to github user nhaynes for all of this. See for a brief discussion on these changes. Here's my interpretation (please correct me if I'm wrong).Īs of August, 2021, Laravel Sail now comes with the docker containers configured correctly for XDebug. I do seem to have xdebug running correctly on the server, but despite spending the day reading posts on how to make this happen I just can’t get phostorm to connect to xdebug.ĭoes anyone have step by step instructions on how to do this? It seems like this would be a good thing to have here or in the Sail documentation. I’m rather new to Laravel I’m loving it so far and making good progress on my project.īut, I’m having an awful time getting xdebug, sail, and phpstorm to play nice. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |