- [ ] [`Parameters`](https://github.com/efficiently/authority-controller/blob/2.1.0/src/Efficiently/AuthorityController/Parameters.php) class should inherit the [`Illuminate\Support\Collection`](https://github.com/laravel/framework/blob/v5.1.19/src/Illuminate/Support/Collection.php) class instead of rewrite some methods like `get()`, `set()`, `has()`... - [ ] Check if `singleton` options is OK under real conditions - [ ] Port CanCan docs for public methods of `ControllerResource` and `Authority` classes - [ ] Add CanCan 2.0 [Resources](https://github.com/ryanb/cancan/wiki/CanCan-2.0#resources) and [Resource Attributes](https://github.com/ryanb/cancan/wiki/CanCan-2.0#resource-attributes) features? - [x] Port CanCan Wiki [docs](https://github.com/ryanb/cancan/wiki) - [x] Explain how to structure lang files to get translated error messages - [x] Write tests for `shallow` and `singleton` options - [x] Port and write tests for `ControllerResource` class - [x] Write tests for `Parameters` and `ControllerAdditions` classes - [x] Check if Controllers and Models namespaced are OK under real conditions - [x] Port and write tests for new features introduced in `Authority` class - [ ] <del>Replace all `array_key_exists('foo', $array);` with `array_get($array, 'foo');` to improve code readability ?</del>
Parametersclass should inherit theIlluminate\Support\Collectionclass instead of rewrite some methods likeget(),set(),has()...singletonoptions is OK under real conditionsControllerResourceandAuthorityclassesshallowandsingletonoptionsControllerResourceclassParametersandControllerAdditionsclassesAuthorityclassReplace allarray_key_exists('foo', $array);witharray_get($array, 'foo');to improve code readability ?