diff --git a/src/Preset.php b/src/Preset.php index 75d4fcc8..d2c75d90 100644 --- a/src/Preset.php +++ b/src/Preset.php @@ -7,6 +7,7 @@ namespace Pest; use Pest\Arch\Support\Composer; use Pest\ArchPresets\AbstractPreset; use Pest\ArchPresets\Base; +use Pest\ArchPresets\Laravel; use Pest\ArchPresets\Strict; use Pest\ArchPresets\Security; use Pest\PendingCalls\TestCall; @@ -40,6 +41,14 @@ final class Preset return $this->executePreset(new Base($this->baseNamespaces())); } + /** + * Uses the Pest laravel preset and returns the test call instance. + */ + public function laravel(): Strict + { + return $this->executePreset(new Laravel($this->baseNamespaces())); + } + /** * Uses the Pest strict preset and returns the test call instance. */