Questions tagged [laravel-sail]

319 questions
0
votes
1 answer

Install ODBC driver and php drivers for Microsoft SQL Server for Laravel Sail

I am trying to connect to MS SQL database to pull some data and import to my MySQL DB. I am using the latest version Laravel 9 with Laravel Sail. Here are the steps I took sail artisan sail:publish to publish Docker and then in the Docker folder…
nick
  • 1
  • 3
0
votes
1 answer

Running a laravel 9 project cloned from github

I have cloned a laravel 9 project which is working in the System it created. The laravel project uses sail to run the project in PHP 8. I am not able to run the local version in the system where I cloned the project. I tried the following code as…
Asish Antony
  • 85
  • 2
  • 11
0
votes
1 answer

Laravel Sail - Migration are working but can't register new user

I've set up a new laravel project and here's the step I followed : install laravel on docker using curl -s "https://laravel.build/example-app" | bash changing mysql port as 3306 is already used in my machine. Files have changed .env…
skytorner
  • 405
  • 2
  • 8
  • 19
0
votes
0 answers

Laravel config() function not working properly during tests

I have an application using laravel 8 that runs on laravel sail. When I launch the tests with the command sail artisan test I noticed something strange. The config() function of laravel was getting the wrong value, meanwhile, the env() function…
C. Celora
  • 429
  • 1
  • 3
  • 12
0
votes
0 answers

Error test-1 exited with code 2, Laravel sail

I am using Laravel sail and MySQL and Mailhog packages. When I use the sail command, it shows me the following error: Terminal: Error: Invalid user name sail in section 'program:php' (file: '/etc/supervisor/conf.d/supervisord.conf') For help, use…
0
votes
1 answer

Laravel cloned repository docker composer unable to create vendor

I recently got a new working PC with Ubuntu 22.04 on it. I pulled down my repo from Github and decided to give running everything through docker containers a try. I found a script on laravel docs in order to run composer install through a…
Jesper Andersen
  • 524
  • 2
  • 6
  • 16
0
votes
0 answers

Laravel sail. Error executing "sail up" command in test container

I have this problem, I hope you can help me. I have my project in Laravel 8 using sail, it works normally but now when I execute the sail up command it gives me this error, it also gives me an error in another project outside of this. Error…
0
votes
0 answers

usermod: user 'sail' does not exist. Laravel sail

I try to start my docker image using laravel sail but it fails to finish in project.test container usermod: user 'sail' does not exist. Error: Invalid user name sail in section 'program:php' (file: '/etc/supervisor/conf.d/supervisord.conf') For…
0
votes
1 answer

trying to use hCaptcha with Laravel | Sail | Docker environment

I am developing locally - laravel sail / docker environment - and access my site with http://localhost. Trying to test hCaptcha. Cannot do so locally. It has been suggested to change my /etc/hosts file: # cat hosts 127.0.0.1 localhost ::1…
0
votes
1 answer

Laravel 9 Sail port forward error for mysql

I have port forwarded applications mysql port to 3307 because I need my host mysql to keep running at 3306, but it gives below error. Also I am able to get welcome page after running sail up I am using laravel 9 latest…
geeky
  • 1,592
  • 1
  • 8
  • 14
0
votes
1 answer

Laravel Sail + Vue 3 best practice

I created my first Laravel Sail yesterday but I've a tiny problem with Vue because creating a frontend in a separated folder caused some headache to me. As there are two different package.json one in the project root and the other in frontend…
mbnoimi
  • 490
  • 4
  • 21
0
votes
0 answers

Laravel Sail MSSQL database creation on startup

I am currently working on Laravel Sail in combination with SQL server. What i want to do is create databases on sail startup but i can't seem to figure out how to edit my Dockerfile in a way that i can login to the sql server and create the…
Thimo Franken
  • 348
  • 4
  • 20
0
votes
0 answers

Laravel Service won't register

Followed every step from laravel 9 manual, and my service will not register consistently. Don't quite know why but it suddenly breaks and I receive a Target class [thumbnail] does not existerror out of nowhere. Setup Service: namespace…
thomi
  • 1,603
  • 1
  • 24
  • 31
0
votes
2 answers

Laravel - 404 on some routes - only on local (Sail)

Pulling my hair out with this one. I have an API that is working completly in both staging and production environments but recently has started return some 404 on two of the routes locally, and I cant work out why. (No changes have been made to the…
0
votes
0 answers

Permission error whenever I create a file using Laravel Artisan in my WSL

I am having a weird problem with Laravel Sail on WSL2, if I create a model using the artisan command, whenever I make changes to the file and save it, I am having the following error: Failed to save 'TestModel.php': Unable to write file…
Alessandro
  • 164
  • 1
  • 2
  • 11