Skip to content

Commit f244a98

Browse files
authored
Merge branch 'main' into patch-40
2 parents 6549e41 + 717d5c7 commit f244a98

File tree

90 files changed

+1750
-496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1750
-496
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
/.github export-ignore
66
/.gitattributes export-ignore
77
/.gitignore export-ignore
8-
/.travis.yml export-ignore
98
/phpunit.xml.dist export-ignore
10-
/.scrutinizer.yml export-ignore
119
/art export-ignore
1210
/docs export-ignore
1311
/tests export-ignore
1412
/.editorconfig export-ignore
1513
/.php_cs.dist.php export-ignore
1614
/phpstan* export-ignore
17-
/.styleci.yml export-ignore
1815
/CHANGELOG.md export-ignore
1916
/CONTRIBUTING.md export-ignore
2017

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Bug Report
2+
description: "Report a reproducible bug."
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Before creating a new Bug Report, please check that there isn't already a similar issue on [the issue tracker](https://github.com/spatie/laravel-permission/issues) or in [the discussions](https://github.com/spatie/laravel-permission/discussions).
8+
Also, **many issues/questions/problems are already answered** in the [documentation](https://spatie.be/docs/laravel-permission) already. **Please be sure to check the docs** because it will save you time!
9+
10+
- type: textarea
11+
attributes:
12+
label: Description
13+
description: A clear and concise description of what the bug is.
14+
validations:
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Steps To Reproduce
19+
description: How do you trigger this bug? Please walk us through it step by step.
20+
value: |
21+
1.
22+
2.
23+
3.
24+
...
25+
validations:
26+
required: true
27+
- type: input
28+
attributes:
29+
label: Example Application
30+
description: "Here is a link to my Github repo containing a minimal Laravel application which shows my problem:"
31+
- type: markdown
32+
attributes:
33+
value: |
34+
You can use `composer show` to get package version numbers:
35+
- type: input
36+
attributes:
37+
label: "Version of spatie/laravel-permission package:"
38+
validations:
39+
required: true
40+
- type: input
41+
attributes:
42+
label: "Version of laravel/framework package:"
43+
validations:
44+
required: true
45+
- type: input
46+
attributes:
47+
label: "PHP version:"
48+
validations:
49+
required: true
50+
- type: input
51+
attributes:
52+
label: "Database engine and version:"
53+
- type: input
54+
attributes:
55+
label: "OS: Windows/Mac/Linux version:"

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v1.6.0
16+
uses: dependabot/fetch-metadata@v2
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919
compat-lookup: true

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
ref: ${{ github.head_ref }}
1717

1818
- name: Fix PHP code style issues
19-
uses: aglipanci/laravel-pint-action@2.3.0
19+
uses: aglipanci/laravel-pint-action@v2
2020

2121
- name: Commit changes
2222
uses: stefanzweifel/git-auto-commit-action@v5

.github/workflows/phpstan.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
paths:
66
- '**.php'
77
- 'phpstan.neon.dist'
8+
pull_request:
9+
paths:
10+
- '**.php'
11+
- 'phpstan.neon.dist'
812

913
jobs:
1014
phpstan:
@@ -16,15 +20,15 @@ jobs:
1620
- name: Setup PHP
1721
uses: shivammathur/setup-php@v2
1822
with:
19-
php-version: 8.1
23+
php-version: 8.3
2024
coverage: none
2125

2226
- name: Install composer dependencies
23-
uses: ramsey/composer-install@v2
27+
uses: ramsey/composer-install@v3
2428

2529
- name: Install larastan
2630
run: |
27-
composer require "nunomaduro/larastan" --no-interaction --no-update
31+
composer require "larastan/larastan" --no-interaction --no-update
2832
composer update --prefer-dist --no-interaction
2933
3034
- name: Run PHPStan

.github/workflows/run-tests.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,35 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: [8.3, 8.2, 8.1, 8.0]
13-
laravel: ["^10.0", "^9.0", "^8.12"]
12+
php: [8.4, 8.3, 8.2, 8.1, 8.0]
13+
laravel: ["^12.0", "^11.0", "^10.0", "^9.0", "^8.12"]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16+
- laravel: "^12.0"
17+
testbench: 10.*
18+
- laravel: "^11.0"
19+
testbench: 9.*
1620
- laravel: "^10.0"
1721
testbench: 8.*
1822
- laravel: "^9.0"
1923
testbench: 7.*
2024
- laravel: "^8.12"
2125
testbench: "^6.23"
2226
exclude:
27+
- laravel: "^12.0"
28+
php: 8.1
29+
- laravel: "^12.0"
30+
php: 8.0
31+
- laravel: "^11.0"
32+
php: 8.1
33+
- laravel: "^11.0"
34+
php: 8.0
2335
- laravel: "^10.0"
2436
php: 8.0
2537
- laravel: "^8.12"
2638
php: 8.3
39+
- laravel: "^8.12"
40+
php: 8.4
2741

2842
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2943

@@ -44,7 +58,7 @@ jobs:
4458

4559
- name: Install dependencies
4660
run: |
47-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" "nesbot/carbon:>=2.62.1" --no-interaction --no-update
61+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" "nesbot/carbon:>=2.72.6" --no-interaction --no-update
4862
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
4963
5064
- name: Execute tests

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ composer.lock
33
vendor
44
tests/temp
55
.idea
6+
.phpunit.cache
67
.phpunit.result.cache
78
.php-cs-fixer.cache
89
tests/CreatePermissionCustomTables.php

0 commit comments

Comments
 (0)