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

28 Commits

Author SHA1 Message Date
Matt Stauffer
374eaa0d59 Make domain required in currentTunnelUrl
These methods are never passed null anyway.

Co-Authored-By: Mateus Junges <mateus@junges.dev>
2024-08-24 22:19:28 -05:00
driesvints
fc1b23b523 Fix code styling 2024-08-02 08:24:13 +00:00
driesvints
2c3e2f3da1 Fix code styling 2024-06-18 16:58:03 +00:00
Matt Stauffer
b1b84fe163 Minor formatting tweaks to #1460 2023-12-20 22:40:28 -05:00
Matt Stauffer
9c922e5a2f Merge pull request #1460 from rana01645/master
Update "fetch-share-url" to pull correct URL for HTTPS tunnels, not just HTTP
2023-12-20 22:39:06 -05:00
mattstauffer
e75f238b22 Fix code styling 2023-12-21 03:25:35 +00:00
Afjalur Rahman Rana
cd099f650f if http and https both exist, priotize http 2023-12-05 11:41:25 +00:00
Afjalur Rahman Rana
ec7046f3a7 test case updated 2023-12-05 11:23:24 +00:00
Afjalur Rahman Rana
e829a1cf31 give https tunnel support for valet fetch-share-url 2023-12-05 10:31:09 +00:00
driesvints
c1ef300469 Fix code styling 2023-07-21 03:30:59 +00: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
4c2c4a1238 Drop unnecessary doc blocks (#1339)
* Drop unnecessary doc blocks

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-11 09:14:39 -05:00
Matt Stauffer
f13be53b9f Clean up DX for fetch-share-url 2022-12-25 23:59:25 -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
Matt Stauffer
7698611a6a Add type hints and return types to ngrok 2022-12-19 19:17:30 -05:00
NasirNobin
305736bd76 Valet fetch-share-url issue fix (#1285)
* valet fetch-share-url issue fix

* StyleCI patch
2022-10-24 14:41:39 +02:00
Matt Stauffer
e69d448245 Update Ngrok (valet share) to lowercase domains before matching 2022-05-18 11:47:30 -04:00
Dries Vints
f980900727 Fix guzzle issues 2021-12-23 09:21:45 +01:00
Bram Ceulemans
4c98f63b96 Replace HTTPFul with Guzzle 2021-12-20 16:49:06 +01:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
Chris Brown
c8435c5187 Part 2: Fix auto-detection amongst multiple ngrok processes
Thanks to the generosity of Alan at Ngrok, I've been able to do some additional testing with temporary added features.
Turns out #864 was incomplete. This PR now also loops through the default endpoints in order to find a process matching the passed domain.

Ref: #864
Ref: #145
2019-12-06 23:33:20 -05:00
Chris Brown
710fa27651 Fix auto-detection amongst multiple ngrok processes
Ngrok Pro plans allow multiple processes, which means you could be serving several sites simultaneously. This PR allows Valet to correctly identify amongst the active ngrok process URLs.

Fixes #145
2019-12-03 18:34:08 -05:00
Adam Wathan
3d0e099755 Remove grim array type hints 2016-12-08 08:32:55 -05:00
Taylor Otwell
b52f463ecb remove superstition 2016-09-21 09:17:36 -05:00
Lucas Michot
2497122810 Use strict comparisons (#74) 2016-05-27 10:36:50 -05:00
Taylor Otwell
97f7ae2342 organize better 2016-05-10 08:29:24 -05:00