Skip to content

Commit c53c4fb

Browse files
committed
Merge branch 'main' into develop
2 parents 82e34a9 + ef46da8 commit c53c4fb

File tree

4 files changed

+56
-11
lines changed

4 files changed

+56
-11
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,23 @@ jobs:
1717
fail-fast: true
1818
matrix:
1919
os: [ubuntu-latest]
20-
php: [8.3, 8.2]
21-
laravel: [11.*, 10.*]
20+
php: [8.4, 8.3, 8.2]
21+
laravel: [12.*, 11.*, 10.*]
2222
stability: [prefer-lowest, prefer-stable]
2323
include:
24+
- laravel: 12.*
25+
testbench: 10.*
26+
carbon: ^3.0
2427
- laravel: 11.*
2528
testbench: 9.*
2629
carbon: ^2.63
2730
- laravel: 10.*
2831
testbench: 8.*
2932
carbon: ^2.63
30-
33+
exclude:
34+
- laravel: 12.*
35+
php: 8.2
36+
3137
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3238

3339
steps:

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
# Changelog
22

33
All notable changes to `laravel-workflow-process` will be documented in this file.
4+
5+
## v1.0.0 - 2025-04-04
6+
7+
### Highlight
8+
9+
- Laravel 10, 11, 12 Support
10+
- Use GuardEvaluator for better customization.
11+
12+
### What's Changed
13+
14+
* Update zerodahero/laravel-workflow requirement from ^4.0||^5.0 to ^6.0.0 by @dependabot in https://github.com/soap/laravel-workflow-process/pull/1
15+
* Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/soap/laravel-workflow-process/pull/2
16+
* Bump aglipanci/laravel-pint-action from 2.4 to 2.5 by @dependabot in https://github.com/soap/laravel-workflow-process/pull/3
17+
* Add Laravel 12 support by @soap in https://github.com/soap/laravel-workflow-process/pull/4
18+
19+
### New Contributors
20+
21+
* @dependabot made their first contribution in https://github.com/soap/laravel-workflow-process/pull/1
22+
* @soap made their first contribution in https://github.com/soap/laravel-workflow-process/pull/4
23+
24+
**Full Changelog**: https://github.com/soap/laravel-workflow-process/compare/v0.1.2...v1.0.0

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ This is the contents of the published config file:
2929

3030
```php
3131
return [
32+
'custom_functions' => [
33+
// 'function_name' => [
34+
// 'compiler' => function () { return 'true'; },
35+
// 'evaluator' => function (array $variables) { return true; },
36+
// ],
37+
// 'function_name' => 'App\CustomGuardFunction',
38+
// 'authenicated' => \Soap\LaravelWorkflowProcess\GuardFunctions\Authenticated::class,
39+
40+
'authenticated' => [
41+
'compiler' => function ($guard = 'web') {
42+
return sprintf('authenticated("%s")', $guard);
43+
},
44+
'evaluator' => function (array $variables, $guard = 'web') {
45+
// This allows checking a specific guard (e.g., 'web', 'api', etc.)
46+
return auth()->guard($guard)->check();
47+
},
48+
],
49+
],
3250
];
3351
```
3452

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@
2222
],
2323
"require": {
2424
"php": "^8.2|^8.3|^8.4",
25-
"illuminate/contracts": "^10.0||^11.0||^12.0",
25+
"illuminate/contracts": "^9.0||^10.0||^11.0||^12.0",
2626
"spatie/laravel-package-tools": "^1.16",
2727
"symfony/expression-language": "^7.1",
2828
"zerodahero/laravel-workflow": "^6.1"
2929
},
3030
"require-dev": {
31-
"larastan/larastan": "^2.9",
31+
"larastan/larastan": "^2.9||^3.0",
3232
"laravel/pint": "^1.14",
3333
"nunomaduro/collision": "^8.1.1||^7.10.0",
34-
"orchestra/testbench": "^9.5",
35-
"pestphp/pest": "^2.34",
36-
"pestphp/pest-plugin-arch": "^2.7",
37-
"pestphp/pest-plugin-laravel": "^2.3",
34+
"orchestra/testbench": "^9.5||^10.0",
35+
"pestphp/pest": "^2.34||^3.0",
36+
"pestphp/pest-plugin-arch": "^2.7||^3.0",
37+
"pestphp/pest-plugin-laravel": "^2.3||^3.0",
3838
"phpstan/extension-installer": "^1.3",
39-
"phpstan/phpstan-deprecation-rules": "^1.1",
40-
"phpstan/phpstan-phpunit": "^1.3",
39+
"phpstan/phpstan-deprecation-rules": "^1.1||^2.0",
40+
"phpstan/phpstan-phpunit": "^1.0||^2.0",
4141
"spatie/laravel-ray": "^1.35"
4242
},
4343
"autoload": {

0 commit comments

Comments
 (0)