7/13/2023 0 Comments Download phpstorm mac m1This means every time a test runs a database named testing will be used. Setup TestingĬhange phpunit.xml to use a testing database, sail created the database. env to mysql which is the host name created by sail. 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'm trying out Laravel Sail for my local development, this post serves as documenting the process and getting PhpStorm to play nice with Sail.
0 Comments
Leave a Reply. |