Skip to content

Commit 6318975

Browse files
committed
update for Laravel 12, pest
1 parent d014002 commit 6318975

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed

composer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1",
20-
"illuminate/contracts": "^10.0|^11.0",
19+
"php": "^8.3",
20+
"illuminate/contracts": "^11.0|^12.0",
2121
"spatie/laravel-package-tools": "^1.9.2"
2222
},
2323
"require-dev": {
24-
"codinglabsau/php-styles": "dev-main",
25-
"nunomaduro/collision": "^7.0",
26-
"orchestra/testbench": "^8.0",
27-
"phpunit/phpunit": "^10.0",
24+
"laravel/pint": "^1.24",
25+
"orchestra/testbench": "^9.0|^10",
26+
"pestphp/pest": "^2.0",
2827
"spatie/laravel-ray": "^1.26"
2928
},
3029
"autoload": {
@@ -42,7 +41,10 @@
4241
"test": "vendor/bin/phpunit"
4342
},
4443
"config": {
45-
"sort-packages": true
44+
"sort-packages": true,
45+
"allow-plugins": {
46+
"pestphp/pest-plugin": true
47+
}
4648
},
4749
"extra": {
4850
"laravel": {

pint.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"concat_space": {
5+
"spacing": "one"
6+
},
7+
"new_with_parentheses": {
8+
"named_class": true,
9+
"anonymous_class": true
10+
},
11+
"ordered_imports": {
12+
"imports_order": [
13+
"const",
14+
"class",
15+
"function"
16+
],
17+
"sort_algorithm": "length"
18+
}
19+
}
20+
}

tests/ExampleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
it('can test', function () {
4+
expect(true)->toBeTrue();
5+
});

tests/Pest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
use Codinglabs\Skeleton\Tests\TestCase;
4+
5+
uses(TestCase::class)->in(__DIR__);

0 commit comments

Comments
 (0)