-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set laravel PHP default to 8.1, fixes #4651 #4653
Conversation
Download the artifacts for this pull request: |
Looks good to me. |
Laravel test in TestDdevFullSiteSetup is using a canned laravel code setup, has to be updated, |
That appears to be Laravel Lumen:
Currently, Laravel Lumen is at the follow, so still lower requirements than Laravel 10:
|
The preference is to use the actual upstream code, but I think it requires |
@tyler36 following the quickstart I get Laravel v9.52.0, https://ddev.readthedocs.io/en/latest/users/quickstart/#laravel So I'm on the wrong track trying to create a new tarball for code etc. If laravel 10 has been released... is it not in composer? |
Just ran through updated quickstart again and I'm getting $ mkdir my-laravel-app
$ cd my-laravel-app
$ ddev config --project-type=laravel --docroot=public --create-docroot --php-version=8.1
$ ddev composer create --prefer-dist --no-install --no-scripts laravel/laravel -y
...
Creating a "laravel/laravel" project at "/tmp/YQMaGP"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v10.0.2)
- Downloading laravel/laravel (v10.0.2)
- Installing laravel/laravel (v10.0.2): Extracting archive Since that's running in a new container instance, I assume theres no composer caching issue right? |
Oh, here's the interesting thing. It's fancy:
So it ends up switching to laravel 9.5! |
3adcdaa
to
896b25e
Compare
896b25e
to
221bdec
Compare
Just retested this and everything appears fine. $ ddev -v
ddev version v1.21.6-40-g221bdecb This version results in Laravel v As suggested above, I think we need to add - ddev composer create --prefer-dist --no-install --no-scripts laravel/laravel
+ ddev composer create --prefer-dist --no-install --no-scripts laravel/laravel -y Without this, the installation pauses for confirmation: $ ddev composer create --prefer-dist --no-install --no-scripts laravel/laravel
...
Warning: MOST EXISTING CONTENT in the composer root (/home/user13/temp/my-laravel-app) will be deleted by the composer create-project operation. Only .ddev, .git and .tarballs will be preserved.
Would you like to continue? [Y/n] (yes): By including |
Co-authored-by: tyler36 <tyler36@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, sorry for the long wait from me!
The Issue
Laravel 10 requires PHP 8.1:
How This PR Solves The Issue
Manual Testing Instructions