1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00
Commit Graph

1751 Commits

Author SHA1 Message Date
Matt Stauffer
022330ed05 Merge branch 'master' into version-4 2023-02-12 20:09:55 -05:00
Matt Stauffer
18324a2c21 Merge pull request #1365 from laravel/mes/update-1361
Update version-4 to include #1361
2023-02-10 20:37:37 -05:00
Matt Stauffer
c24ae19972 Bring #1361 into version-4 2023-02-10 20:09:28 -05:00
Matt Stauffer
4af660e0f8 Merge pull request #1364 from laravel/mes/unsecure-when-unlinking
Unsecure when unlinking
2023-02-10 18:51:29 -05:00
Matt Stauffer
0e9060d0a6 Update unlink command to also unsecure, if necessary 2023-02-10 18:49:28 -05:00
Matt Stauffer
b108532586 Merge pull request #1361 from laravel/mes/use-commands-read-cwd
Update phpRc reader to check cwd before checking config, if cwd specified
2023-02-10 14:45:57 -05:00
StyleCI Bot
21587b7f07 Apply fixes from StyleCI 2023-02-08 03:00:12 +00:00
Matt Stauffer
15cf3fefaf Handle old, customized sample valet drivers more gracefully 2023-02-07 21:59:58 -05:00
Matt Stauffer
72804018cb Merge 2023-02-07 21:41:46 -05:00
StyleCI Bot
44c2fcc63e Apply fixes from StyleCI 2023-02-08 02:39:46 +00:00
Matt Stauffer
719ff07eec Bring in changes to mirror #1358 2023-02-07 21:39:32 -05:00
StyleCI Bot
b588ef30f8 Apply fixes from StyleCI 2023-02-08 02:36:57 +00:00
Matt Stauffer
faf2ba4ce0 Merge 2023-02-07 21:36:46 -05:00
Matt Stauffer
edae5fbdf7 Refactor local network address for Valet 4's Server class 2023-02-07 21:36:26 -05:00
StyleCI Bot
ad6a17b5c8 Apply fixes from StyleCI 2023-02-08 02:17:20 +00:00
Matt Stauffer
8314844786 Merge branch 'version-4' of github.com:laravel/valet into version-4 2023-02-07 21:17:01 -05:00
Matt Stauffer
9dedf33a34 Bring in changes to mirror #1284 2023-02-07 21:16:55 -05:00
StyleCI Bot
293746dff9 Apply fixes from StyleCI 2023-02-08 02:13:59 +00:00
Matt Stauffer
232dfd9361 Bring in changes to mirror #1356 2023-02-07 21:13:39 -05:00
Matt Stauffer
6d785d9349 Fix prioritization in phpRcVersion 2023-02-07 18:43:49 -05:00
StyleCI Bot
4837648a35 Apply fixes from StyleCI 2023-02-07 23:40:47 +00:00
Matt Stauffer
73b5e987e2 Update phpRc reader to check cwd before checking config, if cwd specified 2023-02-07 18:40:18 -05:00
Matt Stauffer
c3a2b0be24 Merge pull request #1358 from laravel/mes/remove-ca-on-uninstall
Remove Valet Certificate Authority on uninstall
2023-02-07 18:17:38 -05:00
driesvints
44a474d715 Update CHANGELOG 2023-02-07 16:12:19 +00:00
Dries Vints
3a712a7c2c Update app.php v3.3.2 2023-02-07 17:11:36 +01:00
Joel Butcher
a6d163e16e update command 2023-02-07 12:05:54 +00:00
Joel Butcher
e833782276 add --phpVersion option to valet link command 2023-02-07 11:44:27 +00:00
StyleCI Bot
30e29762c6 Apply fixes from StyleCI 2023-02-07 03:26:09 +00:00
Matt Stauffer
583eef76e3 Refactor removeCa 2023-02-06 22:25:57 -05:00
Matt Stauffer
d5e6d6aab5 Remove Valet Certificate Authority on uninstall 2023-02-06 22:23:36 -05:00
Matt Stauffer
2186e7cfee wip upgrade.md 2023-02-06 11:43:02 -05:00
Matt Stauffer
0879fb8f00 Merge pull request #1284 from thinkverse/fix-local-network-sharing
Enable local network sharing
2023-02-01 17:21:30 -05:00
driesvints
70b368126b Update CHANGELOG 2023-01-31 15:58:54 +00:00
Dries Vints
715a3019f4 version v3.3.1 2023-01-31 16:58:16 +01:00
Matt Stauffer
a2d3c04ab5 Make 127.0.0.1 SERVER_ADDR definition only if null (#1356) 2023-01-29 21:20:18 -05:00
Matt Stauffer
dd8e15edf5 Implement valet fetch-share-url when working with Expose (#1349)
* Flesh out Expose currentTunnelUrl method

* Apply fixes from StyleCI

* Prep for requiring a certain version of Expose

* Don't call installed() before installedVersion() in Composer

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-24 20:53:05 -05:00
Matt Stauffer
f23e1456bb Check whether services are running as the correct user in valet status (#1348) 2023-01-22 21:56:06 -05:00
Matt Stauffer
e756613d91 Merge branch 'master' into version-4 2023-01-19 13:19:18 -05:00
Matt Stauffer
5c7b2d313a Add support for .valetrc (#1347)
* Add .valetrc support

* Apply fixes from StyleCI

* wip

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-18 20:44:51 -05:00
StyleCI Bot
6a100fc648 Apply fixes from StyleCI 2023-01-18 21:51:54 +00:00
Matt Stauffer
8ba65d6a68 Drop PHP 7.0, and update Magento driver to support PHP 7.3 2023-01-18 16:51:44 -05:00
Matt Stauffer
921f68a3ae Support PHP 7.0+ (#1346)
* Get PHP executable for a PHP 8+ version even if linked PHP is below 8

This allows users to run PHP 7.4 (haven't tested in below 7.4) while the codebase is PHP 8+.

* Apply fixes from StyleCI

* Return correct path for linked PHP

* Apply fixes from StyleCI

* Add PHP@7.2 support

* Add support for PHP 7.0-7.2

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-18 16:39:21 -05:00
driesvints
609183786b Update CHANGELOG 2023-01-17 16:39:50 +00:00
Dries Vints
d78142c4f6 Update app.php v3.3.0 2023-01-17 17:38:33 +01:00
Dries Vints
01512e00c9 Update composer.json (#1341) 2023-01-16 09:36:16 +01:00
Matt Stauffer
9143636c76 Add the ability for drivers to check Composer dependencies (#1345) 2023-01-13 21:54:59 -05:00
Matt Stauffer
303462ffd1 Add Expose support, drop ngrok binary and move it to be managed by Brew, drop copying ngrok share URL to clipbaord
* Extract basic driver with public/ from basic driver, and simplify both

* Apply fixes from StyleCI

* Set HTTP_HOST in BaseDriverTest

* Move server helpers to their own file; add type hints

* Update drivers location and loading

- Extract much of server.php into a `Server` class
- Move all but the Laravel and Basic drivers into a subfolder
- Load all but the Laravel and Basic drivers via glob
- Add `beforeLoading` hook to simplify the `frontControllerPath` method for some drivers

* Apply fixes from StyleCI

* Add additional notes to upgrade.md

* Apply fixes from StyleCI

* Require PHP 8.0

* Add type hints and return type hints to Brew

* Apply fixes from StyleCI

* Add type hints and return type hints to CommandLine

* Add type hints and return type hints to Configuration

* Add type hints and return type hints to Diagnose

* Apply fixes from StyleCI

* Add type hints and return type hints to DnsMasq

* Add type hints and return hints to Filesystem

* Add type hints and return types to Nginx

* Add type hints and return types to ngrok

* Add type hints and return types to PhpFpm

* Apply fixes from StyleCI

* Add type hints and return types to Site and Valet

* Apply fixes from StyleCI

* Require passing a version number to isolate command

* Apply fixes from StyleCI

* Bump compat to php 8; add type hints and return types to helpers

* Apply fixes from StyleCI

* Use constructor promotion

* Apply fixes from StyleCI

* Write tests for Server.php

* Apply fixes from StyleCI

* Move upgrade calls into Upgrader class, and add upgrade to check for old custom drivers

* Apply fixes from StyleCI

* Replace some \n with PHP_EOL; move custom drivers into Custom namespace

* Apply fixes from StyleCI

* Add doc blocks

* Clean up NullWriter; drop legacy config check

* Allow null response from frontControllerPath

* Apply fixes from StyleCI

* Drop exits, fix 404 path

* Better handle new installations

* Apply fixes from StyleCI

* Drop extensions

* Clean up DX for fetch-share-url

* Apply fixes from StyleCI

* Fix site::unlink method signature and docblock

* Tweak the wording for the which command

* Support isolated sites running PHP 7.4

* Add a bunch more CLI command tests (#1332)

* Wip some cli tests

* Apply fixes from StyleCI

* Test parked command

* Test forget command

* Update Filesystem::rmDirAndContents to respect symlinks

* Wip cli commands

* Apply fixes from StyleCI

* Test link command, unlink command, and secure command

* Apply fixes from StyleCI

* Add tests for unsecure, unsecure --all, secured commands

Add placeholders for the remaining CLI commands
Add nginx::restart to unsecure --all command

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Drop old config migrations

* Add status command (#1329)

* Build the foundation of a status command

* Apply fixes from StyleCI

* Wip testing status command

* Apply fixes from StyleCI

* Fix status test

* Apply fixes from StyleCI

* Fix race condition in creating test config file

* Apply fixes from StyleCI

* Reset container for each test

* Differentiate response code based on success or failure of status command

* Apply fixes from StyleCI

* Add the ability to test if a Brew service is running

* Apply fixes from StyleCI

* Check for more services running in status command

* Apply fixes from StyleCI

* Test Status

* Apply fixes from StyleCI

* Drop Yoast from base application test case

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Test most of the remaining CLI commands

* Test set tld command

* Test set loopback command

* Test proxy, unproxy, and proxies commands

* Apply fixes from StyleCI

* Test which command

* Test diagnose command

* Test directory-listing and which-php commands

* Text isolate and unisolate and isolated commands

* Apply fixes from StyleCI

* Test trust command

* Apply fixes from StyleCI

* Test on-latest-version command

* Move uninstall text to a class, and tweak text and presentation

* Apply fixes from StyleCI

* Test use command

* Test stop command

* Test start command

* Test restart command

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Drop unnecessary doc blocks (#1339)

* Drop unnecessary doc blocks

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Tweak status output and install output

* Add debug instructions to valet status, expand "valet installed" status check

* Drop extensions directory

* Apply fixes from StyleCI

* Remove more docblocks

* Upgrade ngrok to 3.1.0

* Test force uninstall command

* Test log command

* Drop copying Ngrok share to clipboard; add first steps of Expose code

* Add logic paths for Expose vs. ngrok and the share-tool config

* Apply fixes from StyleCI

* Take the first steps of manually installing ngrok and expose when needed

* Apply fixes from StyleCI

* Next steps Brew-installed ngrok

* Apply fixes from StyleCI

* Add class to represent Composer; continue ngrok + expose updates

* Apply fixes from StyleCI

* Add ensureInstalled() method to Expose and installOrFail() to Composer

* Apply fixes from StyleCI

* Require global PHP 8+ to install

* Exit if invalid domain is passed to valet share

* Update Composer dependencies to use Illuminate/Container

* Drop the idea of passing a custom domain to valet share

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-13 21:34:37 -05:00
Matt Johnson
3b2b7f62ab Fixes permission denied check when result starts with 'Permission denied' (#1343) 2023-01-13 15:31:45 -05:00
Matt Stauffer
401a2e96fa Test log command 2023-01-11 19:25:09 -05:00
Matt Stauffer
6a61acbb6c Test force uninstall command 2023-01-11 19:16:15 -05:00