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

111 Commits

Author SHA1 Message Date
Matt Stauffer
9042c28a00 Bump version 2023-08-14 15:05:12 -04:00
Dries Vints
31017e611a Update app.php 2023-07-21 05:31:01 +02:00
Chris Brown
269d157b0a Add "valet stop dnsmasq" option
Fixes #1419

Adds:
- `valet stop dnsmasq`
- `valet stop all` (which includes php, nginx, dnsmasq)
- When `valet stop` is called without a service name, a message indicates that dnsmasq can also be stopped via `valet stop dnsmasq`
- Aside: phpfpm now also displays a message when stopping; previously it was silent.
2023-06-20 16:35:59 -04:00
Dries Vints
3bb54ae5b0 Update app.php 2023-05-30 16:52:55 +02:00
Matt Stauffer
f8d4ef583d Merge pull request #1415 from laravel/mes/ensure-base-configuration
Ensure base configuration is correct even if file already exists
2023-05-16 15:27:02 -04:00
Dries Vints
57d43bb289 Update app.php 2023-05-16 17:41:40 +02:00
Matt Stauffer
9ce0ca97b2 Ensure base configuration is correct even if file already exists 2023-05-16 08:23:41 -04:00
Dries Vints
0d3d537f50 Update app.php 2023-05-09 17:53:19 +02:00
Dries Vints
97411ee1d0 Update app.php 2023-04-26 17:40:58 +02:00
Matt Stauffer
fcba8f3a58 Bump to 4.0.1 2023-03-27 14:42:24 -04:00
Matt Stauffer
d1967bbd0c Clarify we need a Homebrew-managed version of ngrok.
Closes #1373
2023-02-23 09:38:27 -05:00
mattstauffer
f6aa921bcf Fix code styling 2023-02-22 21:14:09 +00:00
Matt Stauffer
1cf5563158 Add [y/N] to confirmation prompts 2023-02-22 16:13:40 -05:00
Matt Stauffer
3025fd2ab1 Handle fetch-share-url on users running a free Expose plan. 2023-02-19 21:54:24 -05:00
Matt Stauffer
1d0483a0c8 Catch up to #1370 2023-02-18 21:49:11 -05:00
Matt Stauffer
d80182b464 Add Pint locally and run it 2023-02-13 15:40:49 -05:00
Matt Stauffer
de5d803886 Catch up to #1360 2023-02-12 21:58:56 -05:00
Matt Stauffer
022330ed05 Merge branch 'master' into version-4 2023-02-12 20:09:55 -05:00
Matt Stauffer
c24ae19972 Bring #1361 into version-4 2023-02-10 20:09:28 -05:00
Matt Stauffer
0e9060d0a6 Update unlink command to also unsecure, if necessary 2023-02-10 18:49:28 -05:00
Matt Stauffer
719ff07eec Bring in changes to mirror #1358 2023-02-07 21:39:32 -05: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
Dries Vints
3a712a7c2c Update app.php 2023-02-07 17:11:36 +01:00
Matt Stauffer
d5e6d6aab5 Remove Valet Certificate Authority on uninstall 2023-02-06 22:23:36 -05:00
Dries Vints
715a3019f4 version 2023-01-31 16:58:16 +01: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
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
Dries Vints
d78142c4f6 Update app.php 2023-01-17 17:38:33 +01: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 Stauffer
401a2e96fa Test log command 2023-01-11 19:25:09 -05:00
Matt Stauffer
4c10d906f7 Add debug instructions to valet status, expand "valet installed" status check 2023-01-11 11:37:47 -05:00
Matt Stauffer
9a04590abf Tweak status output and install output 2023-01-11 10:33:25 -05:00
Matt Stauffer
c4faf27525 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>
2023-01-10 23:24:01 -05:00
Matt Stauffer
0c57391eed 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>
2023-01-05 16:40:27 -05:00
Matt Stauffer
e5e0e03799 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>
2022-12-30 15:07:34 -05:00
Matt Stauffer
80498c0234 Tweak the wording for the which command 2022-12-26 00:06:41 -05:00
StyleCI Bot
afced29232 Apply fixes from StyleCI 2022-12-26 04:59:36 +00:00
Matt Stauffer
f13be53b9f Clean up DX for fetch-share-url 2022-12-25 23:59:25 -05:00
Matt Stauffer
5988c4f881 Drop extensions 2022-12-25 23:30:08 -05:00
Matt Stauffer
f2a62f51c6 Merge v3 2022-12-22 11:47:01 -05:00
StyleCI Bot
6824065a22 Apply fixes from StyleCI 2022-12-22 15:31:00 +00:00
Matt Stauffer
b200022041 Add set-ngrok-token command 2022-12-22 10:30:50 -05:00
StyleCI Bot
486fb9b339 Apply fixes from StyleCI 2022-12-22 00:54:25 +00:00
Matt Stauffer
20f48f6eab Replace some \n with PHP_EOL; move custom drivers into Custom namespace 2022-12-21 19:54:13 -05:00
Matt Stauffer
72212fb7b6 Require passing a version number to isolate command 2022-12-21 18:43:37 -05:00
StyleCI Bot
a4e8331852 Apply fixes from StyleCI 2022-12-21 23:37:12 +00:00
Matt Stauffer
9b09621e5c Move upgrade calls into Upgrader class, and add upgrade to check for old custom drivers 2022-12-21 18:36:58 -05:00
StyleCI Bot
ef308bae80 Apply fixes from StyleCI 2022-12-20 21:09:57 +00:00