Questions tagged [laravel-sail]

319 questions
22
votes
6 answers

Can't connect to database Laravel Sail

I'm trying to create a simple laravel project and I'm following a laracast to set up the project with Sail. The project is running fine and I was able to migrate with vendor/bin/sail artisan migrate. The next step in the laracast is to connect to…
FonsVC
  • 411
  • 1
  • 6
  • 13
19
votes
2 answers

Laravel Sail rebuild default database

According to docs: Also, when the MySQL container is starting, it will ensure a database exists whose name matches the value of your DB_DATABASE environment variable. My .env file looks like…
Ezrab_
  • 825
  • 5
  • 19
  • 44
18
votes
6 answers

Unable to set the APP_PORT on .env for Laravel Sail

I have the following problem in Windows 10 (in Ubuntu works properly): I'm working in Laravel 8 with Sail When I create the APP_PORT variable on…
Fredy Rosero
  • 371
  • 1
  • 3
  • 8
14
votes
4 answers

how do you enable ssl using laravel 8 sail

I just created a new Laravel 8 project, following the instructions in their docs. Using Laravel Sail I have the site running locally on my machine just fine using sail up. I have set up an entry in /etc/hosts so the url I go to is…
smenzer
  • 307
  • 1
  • 2
  • 9
13
votes
2 answers

Laravel Sail how to change local dev domain

I have recently decided to try out Laravel Sail instead of my usual setup with Vagrant/Homestead. Everything seems to be beautifully and easily laid out but I cannot seem to find a workaround for changing domain names in the local environment. I…
Uchivaru Kanda
  • 342
  • 1
  • 3
  • 13
13
votes
4 answers

can't use migrate with sail laravel

Hi I've just tried and to install Laravel 8 with sail and I've run into a problem What I've done is to first run the curl one-liner from laravel's own page curl -s https://laravel.build/sail-test | bash once that finished I did as it said and…
Touchpad
  • 662
  • 2
  • 12
  • 29
12
votes
3 answers

Laravel Sail after cloning from Git repository

I currently have my own Laravel application running on Docker using Laravel sail on Windows 11 using Ubuntu on WSL2. This works fine and as intended. I've pushed my work onto a Git repository, but how would I be able to pull this onto a new system?…
n212
  • 517
  • 1
  • 11
  • 29
11
votes
4 answers

Laravel Sail Paradox - There are any way to install without php and composer installed?

Laravel Sail, has a good premisse to create a zero dependency environment, with, php, redis, mariadb etc... But its instalation require composer, composer require php installed, is this a paradox? There are some way to achieve zero dependency, with…
Aloiso Gomes
  • 640
  • 6
  • 12
11
votes
2 answers

Laravel 8 & Laravel Sail for dev on Windows 10 is slow. How to speed up?

How can I recreate this? Create install from Laravel 8 docs and Laravel Sail docs. I use the sail up command, which works great. The command builds docker containers, connects them, and makes development as easy as we can imagine, especially for…
Bart
  • 1,889
  • 1
  • 21
  • 38
10
votes
3 answers

Can't enter my password when trying to create a Laravel project with Sail on Windows

I want to create a new Laravel 8 project and I followed the documentation with docker and Sail on Windows: https://laravel.com/docs/8.x#getting-started-on-windows After I installed everything, I tried executing the command to create the…
chinyoka
  • 103
  • 1
  • 5
10
votes
7 answers

Why is the "sail up" command not building my laravel docker containers?

I'm trying out Laravel Sail, as I've been successfully using Laradock for a few years and hoping to simplify my dev environment setup. I am on Windows 10 64, Docker Desktop 3.0 installed using WSL 2, and my Laravel app is running Laravel 8.20.1. In…
sersun
  • 847
  • 1
  • 7
  • 17
9
votes
3 answers

Add new service using laravel sail

I have a laravel 8 project created with composer. Then I added laravel sail by composer require laravel/sail and then executed command php artisan sail:install. After sail up command, only mysql container was created and everything works well. But…
Yeasir Arafat
  • 1,425
  • 1
  • 13
  • 28
9
votes
1 answer

Error with LARAVEL SAIL [php_network_getaddresses: getaddrinfo failed]

I'm having a problem with laravel sail, it happens that I just cloned the repository and it is unchanged, the docker-compose.yml is totally intact, however, after executing ./vendor/bin/sail up I have the containers up and when I try doing the…
9
votes
5 answers

Laravel Sail is not working properly in Ubuntu 20.04 LTS

Hi i tried to install fresh Laravel project using Laravel Sail docker environment. First it was showing me "Docker is not running" error. Then i found out, i needed to start docker as rootless. I solved it, reading this url:…
sajendra
  • 367
  • 1
  • 3
  • 12
8
votes
1 answer

laravel, sail shell and sail artisan command stop working

sail shell and sail artisan command has stop working. But sail up and sail down are still working. Version details php: 8.0.5 laravel: 8.41.0 sail: 1.5.1 docker: 3.3.3 os: macOS 11.3.1 My docker-compose.yml file # For more information:…
parth
  • 1,803
  • 2
  • 19
  • 27
1
2 3
21 22