1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 17:10:05 +01:00
Commit Graph

524 Commits

Author SHA1 Message Date
Matt Stauffer
400be90585 Resolve merge 2022-12-18 15:15:24 -06:00
Matt Stauffer
c1a7bbe8f3 Merge branch 'version-4' of github.com:laravel/valet into version-4 2022-12-18 15:12:33 -06:00
StyleCI Bot
a73be25a76 Apply fixes from StyleCI 2022-12-18 21:08:41 +00:00
Matt Stauffer
efa7937038 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
2022-12-18 15:08:17 -06:00
Matt Stauffer
29b94a48a6 Move server helpers to their own file; add type hints 2022-12-15 21:34:48 -06:00
StyleCI Bot
0c27c62cec Apply fixes from StyleCI 2022-12-03 23:11:03 +00:00
Matt Stauffer
59967c3068 Extract basic driver with public/ from basic driver, and simplify both 2022-12-03 18:10:54 -05:00
Matt Stauffer
e247533a09 Handle old custom Valet drivers 2022-12-02 22:32:13 -05:00
Matt Stauffer
884c39d70b Test, and fix, ValetDriver 2022-12-02 22:10:04 -05:00
Matt Stauffer
711e3dd2ba Move all drivers to PSR autoload, and write tests 2022-12-02 21:15:15 -05:00
Dries Vints
a0e1e02a47 Test Valet commands (#1256)
* First attempt at testing CLI commands

* Apply fixes from StyleCI

* Protect from running locally

* Fix test

* wip

* wip

* wip

* wip

* wip

* Update app.php

* Create config folder and files for CLI tests

* Apply fixes from StyleCI

* Fix some formatting

* Fix imports

* Update all output() calls to use the writer passed in by the command

Ugly capture of all $outputs from commands, by passing them into `writer()` to be bound into the container, where they can then be pulled out from calls to `output()` and its buddies `info()`, `table()`, and `warning()`.

* Apply fixes from StyleCI

* Flesh out park command test

* Apply fixes from StyleCI

* Drop php 7.0 and 7.1

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Matt Stauffer <matt@tighten.co>
2022-12-02 09:32:28 +01:00
StyleCI Bot
e02b5f3025 Apply fixes from StyleCI 2022-12-02 01:32:31 +00:00
Matt Stauffer
b7d6bd4611 Merge branch 'master' of github.com:laravel/valet 2022-12-01 20:32:13 -05:00
Matt Stauffer
5b3433e806 Merge branch 'patch-1' of https://github.com/JoshuaBehrens/valet into JoshuaBehrens-patch-1 2022-12-01 20:28:51 -05:00
Matt Stauffer
8246ee6319 Merge pull request #1238 from jjpmann/feature/custom-site-stubs
use getStub to allow custom stub files
2022-12-01 20:25:41 -05:00
Matt Stauffer
8fb9b8e738 Merge pull request #1305 from ashleyshenton/fix/retain-secure-proxies
fix: retain secure proxies
2022-11-30 22:08:02 -05:00
Ashley Shenton
566729b603 fix: check for the secure proxy stub when resecuring with a fresh config 2022-11-29 13:27:58 +00:00
Erik | Sobit
3dbecab9dd added missing ) 2022-11-11 09:42:06 +01:00
Erik Dohmen
753f2db745 Update cli/Valet/Site.php
Co-authored-by: Matt Stauffer <mattstauffer@users.noreply.github.com>
2022-11-11 09:37:38 +01:00
Erik | Sobit
2d429c353d solution for only remove the tld if it is at the end of the site name
o check if tld is at the end of the site name and if so remove it
o added corresponding test
2022-11-02 11:53:04 +01: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
Dries Vints
d0d42acff7 PHP 8.2 support (#1279)
* PHP 8.2 support

* wip

* Apply fixes from StyleCI

* wip

* wip

* wip

* Update tests.yml

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-09-08 13:37:17 +02:00
Jerry Price
e668e77f3d Merge branch 'master' into feature/custom-site-stubs 2022-07-08 09:21:51 -04:00
Dries Vints
0208251cee Revert ngrok arm binary (#1258) 2022-05-26 14:18:06 +02:00
Matt Stauffer
e69d448245 Update Ngrok (valet share) to lowercase domains before matching 2022-05-18 11:47:30 -04:00
Matt Stauffer
3772761881 Add extra info output to phpfpm install method 2022-04-18 13:38:16 -04:00
NasirNobin
0267da704e remove preg_replace deprecation warning 2022-04-16 18:47:38 +06:00
Matt Stauffer
70969872cf Roll back #1088 2022-04-15 11:51:34 -04:00
Matt Stauffer
99cf3d4647 Merge branch 'feature/support-parked-domains' of https://github.com/antonioribeiro/valet into antonioribeiro-feature/support-parked-domains 2022-04-13 23:05:38 -04:00
Jerry Price
c35900eacb styleci update 2022-04-13 11:15:54 -04:00
Jerry Price
021a4d1a5c use getStub to allow custom stub files 2022-04-13 10:50:41 -04:00
Michael Lehmkuhl
bc68b6a4b7 Clean up coding style 2022-04-03 18:47:37 -05:00
Michael Lehmkuhl
30af32d856 Clean up coding style 2022-04-03 18:44:56 -05:00
Michael Lehmkuhl
315af8904a Add PHP version to valet links output table 2022-04-03 18:35:51 -05:00
Matt Stauffer
b1ff8deff0 Merge branch 'master' into feature/support-parked-domains 2022-03-31 10:52:18 -04:00
Matt Stauffer
96991252ce Merge branch 'master' into patch-1 2022-03-31 10:29:24 -04:00
Matt Stauffer
0045896d8e Merge pull request #1216 from NasirNobin/feature/valet-run
PHP version isolation helper for command line
2022-03-31 09:55:22 -04:00
Nasir Uddin Nobin
d198d7739c wip - refactor with valetphprc version (#10) 2022-03-30 03:48:03 +06:00
be57ffaf36 CI fixes 2022-03-29 20:07:19 +02:00
e7cd171582 Remove unnecessary comment 2022-03-29 20:01:45 +02:00
a52355ec49 Restore original directory permissions
As discussed in #1220, cleaning up after stopping Homebrew services that
run as root is probably the best solution for now.

What's changed:

- Stopping any Homebrew service now restores the appropriate permissions
  for the Homebrew directories
- Stopping nginx now also happens via $this->brew
  (to avoid code duplication)

The tests were updated to reflect this change.
2022-03-29 19:59:33 +02:00
NasirNobin
0202f7773a remove static from normalizePhpVersion 2022-03-29 23:17:32 +06:00
NasirNobin
dd8c8fc663 add normalizePhpVersion inside getPhpExecutablePath 2022-03-29 09:10:07 +06:00
NasirNobin
1838945f57 Fix typo on arePhpVersionsEqual 2022-03-29 09:01:22 +06:00
Nasir Uddin Nobin
40cb21ec91 Apply suggestions from code review
Co-authored-by: Matt Stauffer <mattstauffer@users.noreply.github.com>
2022-03-29 08:56:01 +06:00
Nasir Uddin Nobin
9a9f73faf9 Update cli/Valet/Brew.php 2022-03-24 18:21:50 +06:00
NasirNobin
23aebbe1d9 StyleCI Patch 2022-03-24 05:17:13 +06:00
Nasir Uddin Nobin
6d3d191f44 [wip] Valet run/refactor with brew opt (#9) 2022-03-24 05:15:45 +06:00
NasirNobin
6f085bc70e StyleCI Patch 2022-03-23 04:13:00 +06:00
Nasir Uddin Nobin
faeee5eb9a Apply suggestions from code review 2022-03-23 02:02:49 +06:00