Skip to content

Commit

Permalink
Merge pull request #163 from mauri870/laravel-9
Browse files Browse the repository at this point in the history
Add Laravel 9 support
  • Loading branch information
mauri870 authored Mar 14, 2022
2 parents 9feb9c3 + dcadbb1 commit 4ede99d
Show file tree
Hide file tree
Showing 4 changed files with 657 additions and 338 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: php

php:
- 7.3
- 8.1

cache:
directories:
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Defender
----------

Defender is an Access Control List (ACL) Solution for Laravel 5 / 6 / 7 (single auth). **(Not compatible with multi-auth)**
Defender is an Access Control List (ACL) Solution for Laravel 5 / 6 / 7 / 8 / 9 (single auth). **(Not compatible with multi-auth)**
With security and usability in mind, this project aims to provide you a safe way to control your application access without losing the fun of coding.

> Current Build Status
Expand Down Expand Up @@ -29,13 +29,15 @@ Defender is looking for maintainers and contributors.

Using <a href="https://getcomposer.org/" target="_blank">composer</a>, execute the following command to automatically update your `composer.json`, using the corresponding package version:

| Version Constraint | Package Version |
|----------------------|------------------|
| >= 5.0.* && <= 5.3.* | 0.6.* |
| ~5.4, ~5.5 | 0.7.* |
| >= 5.6.* | 0.8.* |
| ~6.0 | 0.9.* |
| ~7.0 | 0.10.* |
| Version Constraint | Package Version |
| ---------------------- | --------------- |
| >= 5.0.\* && <= 5.3.\* | 0.6.\* |
| ~5.4, ~5.5 | 0.7.\* |
| >= 5.6.\* | 0.8.\* |
| ^6.0 | 0.9.\* |
| ^7.0 | 0.10.\* |
| ^8.0 | 0.11.\* |
| ^9.0 | 0.12.\* |

```shell
composer require artesaos/defender
Expand Down
16 changes: 6 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@
],
"require": {
"php": ">=7.2.0 || ^8.0",
"illuminate/contracts": "^6.0 || ^7.0 || ^8.0",
"illuminate/http": "^6.0 || ^7.0 || ^8.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0",
"illuminate/database": "^6.0 || ^7.0 || ^8.0",
"illuminate/view": "^6.0 || ^7.0 || ^8.0",
"phpspec/phpspec": "^6.3 || ^7.0 || dev-master"
"laravel/framework": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"phpspec/phpspec": "^6.3 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "~8.0",
"phpunit/phpunit": "^8.0 || ^9.0",
"friendsofphp/php-cs-fixer": "~2.11",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
"orchestra/database": "^4.0 || ^5.0 || ^6.0",
"fakerphp/faker": "~1.0"
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"orchestra/database": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"fakerphp/faker": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 4ede99d

Please sign in to comment.