-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
214 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: PHP Linting | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
phplint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "laravel-pint" | ||
uses: aglipanci/laravel-pint-action@2.0.0 | ||
with: | ||
preset: laravel | ||
verboseMode: true | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "fix: pint" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Changelog | ||
|
||
## UNRELEASED | ||
|
||
- Added support for Laravel 11 | ||
|
||
## v10.0.0 - 2023-02-19 | ||
|
||
- Added support for Laravel 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,80 @@ | ||
{ | ||
"name": "yajra/laravel-acl", | ||
"description": "Laravel ACL is a simple role, permission ACL for Laravel Framework.", | ||
"keywords": [ | ||
"yajra", | ||
"laravel", | ||
"acl", | ||
"user", | ||
"role", | ||
"permissions" | ||
], | ||
"homepage": "https://github.com/yajra/laravel-acl", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Arjay Angeles", | ||
"email": "aqangeles@gmail.com", | ||
"homepage": "https://yajrabox.com", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"illuminate/support": "^10.0", | ||
"illuminate/database": "^10.0" | ||
}, | ||
"require-dev": { | ||
"nunomaduro/larastan": "^2.4", | ||
"orchestra/testbench": "^8.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Yajra\\Acl\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Yajra\\Acl\\Tests\\": "tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "vendor/bin/phpunit" | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "10.0-dev" | ||
"name": "yajra/laravel-acl", | ||
"description": "Laravel ACL is a simple role, permission ACL for Laravel Framework.", | ||
"keywords": [ | ||
"yajra", | ||
"laravel", | ||
"acl", | ||
"user", | ||
"role", | ||
"permissions" | ||
], | ||
"homepage": "https://github.com/yajra/laravel-acl", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Arjay Angeles", | ||
"email": "aqangeles@gmail.com", | ||
"homepage": "https://yajrabox.com", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"illuminate/support": "^11.0", | ||
"illuminate/database": "^11.0" | ||
}, | ||
"laravel": { | ||
"providers": [ | ||
"Yajra\\Acl\\AclServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
"require-dev": { | ||
"larastan/larastan": "^2.9.1", | ||
"laravel/pint": "^1.14", | ||
"rector/rector": "^1.0", | ||
"orchestra/testbench": "^9.0", | ||
"pestphp/pest": "^2.34", | ||
"pestphp/pest-plugin-laravel": "^2.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Yajra\\Acl\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Yajra\\Acl\\Tests\\": "tests/" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "11.x-dev" | ||
}, | ||
"laravel": { | ||
"providers": [ | ||
"Yajra\\Acl\\AclServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"allow-plugins": { | ||
"pestphp/pest-plugin": true | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"test": "./vendor/bin/pest", | ||
"pint": "./vendor/bin/pint", | ||
"rector": "./vendor/bin/rector", | ||
"stan": "./vendor/bin/phpstan analyse --memory-limit=2G --ansi --no-progress --no-interaction --configuration=phpstan.neon.dist", | ||
"pr": [ | ||
"@rector", | ||
"@pint", | ||
"@stan", | ||
"@test" | ||
] | ||
}, | ||
"funding": [ | ||
{ | ||
"type": "github", | ||
"url": "https://github.com/sponsors/yajra" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">src/</directory> | ||
</include> | ||
</coverage> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false"> | ||
<testsuites> | ||
<testsuite name="ACL Test Suite"> | ||
<directory suffix="Test.php">./tests/</directory> | ||
<testsuite name="Unit"> | ||
<directory suffix="Test.php">./tests/Unit</directory> | ||
</testsuite> | ||
<testsuite name="Feature"> | ||
<directory suffix="Test.php">./tests/Feature</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/> | ||
<env name="DB_CONNECTION" value="testing"/> | ||
<env name="APP_KEY" value="base64:2fl+Ktvkfl+Fuz4Qp/A75G2RTiWVA/ZoKZvp6fiiM10="/> | ||
</php> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src/</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"preset": "laravel" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; | ||
use Rector\Config\RectorConfig; | ||
use Rector\Set\ValueObject\LevelSetList; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->paths([ | ||
__DIR__.'/src', | ||
__DIR__.'/tests', | ||
]); | ||
|
||
// register a single rule | ||
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class); | ||
|
||
// define sets of rules | ||
$rectorConfig->sets([ | ||
LevelSetList::UP_TO_PHP_82, | ||
]); | ||
}; |
Oops, something went wrong.