# Team Development With Laravel

September 8, 2020 Laravel 8 was released.

October 23, 2020 Taylor Otwell  [asked the Windows Laravel community on Twitter,](https://twitter.com/taylorotwell/status/1319699926796959746)   what virtual environment they were using to develop in. Wampp/Xampp was the winning option with 39.1% of people using it.

December 8, 2020 Taylor Otwell [ announced the launch of Laravel Sail.](https://twitter.com/taylorotwell/status/1336357588791947264?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1336357588791947264%7Ctwgr%5E%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Ftech.osteel.me%2Fposts%2Fyou-dont-need-laravel-sail)  Now it is officially the recommended way to develop in Laravel.

There is  [documentation](https://laravel.com/docs/8.x/sail#installing-sail-into-existing-applications)  on how to install Laravel Sail into existing applications. For those who are creating new applications Sail is included in Laravel 8.*.

I have had no issues with Laravel Sail development in Linux, but recently I have had issues when a teammate is developing in Windows. So I will be outlining the procedure I used to overcome these issues.

The issue we kept running into was when launching the sail application. We would get the following error.
```
./usr/bin/env: 'bash\r': No such file or directory
```
Fixing this was a bit confusing because there was not a lot of people who had resolved the issue. However there was a suggestion in the  [Laravel documentation](https://laravel.com/docs/8.x/installation#getting-started-on-windows)  that helped me figure it out.

To start off, I downloaded  [Docker Desktop for Windows.](https://hub.docker.com/editions/community/docker-ce-desktop-windows) When installing there was a checkbox for WSL2 installation. WSL2 is a Windows subsystem for Linux. So I made sure this was checked.

Then, I opened the terminal and entered the ```wsl``` command. From here I navigated to the user root directory with the ```cd ~``` command. 

After this I was ready to clone the repository with git. 
```
git clone https://path-to-directory
``` 

My local repository was missing dependencies, so I installed them with  [this command](https://laravel.com/docs/8.x/sail#installing-composer-dependencies-for-existing-projects)  from the Laravel documentation.
```
docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
    laravelsail/php81-composer:latest \
    composer install --ignore-platform-reqs
``` 

From here all I needed to do was create an .env file by copying the .env.example file, launch the application ```sail up```, and set the application key in a new wsl tab ```sail artisan key:generate```.

 [*Image by Christin Hume on Unsplash*](https://unsplash.com/photos/Hcfwew744z4?utm_source=unsplash&utm_medium=referral&utm_content=creditShareLink) 


