Auth Change Log
Version 3.2
v3.2.6
- Authorization:
- Rename
Orchestra\Authorization\AuthorizationTrait
toOrchestra\Authorization\Permission
.
- Rename
v3.2.5
- Auth:
- Cast
Orchestra\Auth\SessionGuard::$userRoles
value toarray
if set tonull
to avoid invalid use ofIlluminate\Support\Arr
.
- Cast
v3.2.4
- Authorization:
- Fixes authorization to support checking multiple roles.
v3.2.3
- Auth:
- Fixes custom auth provider. (@whoacowboy)
v3.2.2
- Auth:
- Pass email value into password reset link template.
v3.2.1
- Auth:
- Use
nullable
timestamps to avoid issues withcreated_at
fields updating on every row update. - Refactor
OrchestraAuthAddRememberTokenToUsersTable
migration to only addremember_token
field if it's not available.
- Use
v3.2.0
- Update support for Laravel Framework v5.2.
- Improved performances by reducing call within
Illuminate\Container\Container
. - Auth:
- Use setter to assign
Orchestra\Contracts\Auth\Guard
, which allow the package to be use on non-Laravel app. - Ensure
Orchestra\Auth\Guard::getUserRolesFromEventDispatcher()
return array instead ofIlluminate\Support\Collection
etc.
- Use setter to assign
- Authorization:
- Return
$this
fromOrchestra\Authorization\Authorization
when attaching memory instance, following convension fromOrchestra\Memory\ContainerTrait
. - Allow
Orchestra\Authorization\Fluent::attach()
andOrchestra\Authorization\Fluent::detach()
to supportIlluminate\Contracts\Support\Arrayable
contract. - Remove
Orchestra\Authorization\Fluent::exist()
. - Add
Orchestra\Authorization\Policy
. - Remove
Orchestra\Authorization\Keyword
, useOrchestra\Support\Keyword
instead. - Allow to manually set roles when working outside of authenticated state via
Orchestra\Authorization\AuthorizationTrait::setUser()
method, which can be revoke by callingOrchestra\AuthorizationTrait::revokeUser()
. - Add
Orchestra\Authorization\Authorization::canIf()
method to only check for ACL metric if the metric is available. - Add
Orchestra\Authorization\AuthorizationTrait::auth()
helper to get instance ofOrchestra\Contracts\Auth\Guard
from$acl
instance.
- Return
Version 3.1
v3.1.10
- Auth:
- Cast
Orchestra\Auth\Guard::$userRoles
value toarray
if set tonull
to avoid invalid use ofIlluminate\Support\Arr
.
- Cast
v3.1.9
- Authorization:
- Fixes authorization to support checking multiple roles.
v3.1.8
- Auth:
- Use setter to assign
Orchestra\Contracts\Auth\Guard
, which allow the package to be use on non-Laravel app.
- Use setter to assign
v3.1.7
- Authorization:
- Return
$this
fromOrchestra\Authorization\Authorization
when attaching memory instance, following convension fromOrchestra\Memory\ContainerTrait
. - Allow
Orchestra\Authorization\Fluent::attach()
andOrchestra\Authorization\Fluent::detach()
to supportIlluminate\Contracts\Support\Arrayable
contract. - Deprecate
Orchestra\Authorization\Fluent::exist()
and replace it withOrchestra\Authorization\Fluent::exists()
.
- Return
v3.1.6
- Authorization:
- Add
Orchestra\Authorization\Policy
. - Remove
Orchestra\Authorization\Keyword
, useOrchestra\Support\Keyword
instead.
- Add
v3.1.5
- Authorization:
- Allow to manually set roles when working outside of authenticated state via
Orchestra\Authorization\AuthorizationTrait::setUser()
method, which can be revoke by callingOrchestra\AuthorizationTrait::revokeUser()
.
- Allow to manually set roles when working outside of authenticated state via
v3.1.4
- Improved performances by reducing call within
Illuminate\Container\Container
. - Authorization:
- Reduces call to
Orchestra\Authorization\Keyword
on known keyword.
- Reduces call to
v3.1.3
- Authorization:
- Add
Orchestra\Authorization\Authorization::canIf()
method to only check for ACL metric if the metric is available. - Add
Orchestra\Authorization\Keyword
to simplify validating fluent keyword against slug value. - Fixes exceptions thrown message via
Orchestra\Authorization\Fluent
.
- Add
v3.1.2
- Authorization:
- Add
Orchestra\Authorization\AuthorizationTrait::auth()
helper to get instance ofOrchestra\Contracts\Auth\Guard
from$acl
instance.
- Add
v3.1.1
- Bump minimum version to PHP v5.5.0.
- Auth:
- Ensure
Orchestra\Auth\Guard::getUserRolesFromEventDispatcher()
return array instead ofIlluminate\Support\Collection
etc.
- Ensure
v3.1.0
- Update support for Laravel Framework v5.1.
Version 3.0
v3.0.2
- Authorization:
- Add
Orchestra\Authorization\Authorization::canIf()
method to only check for ACL metric if the metric is available. - Add
Orchestra\Authorization\Keyword
to simplify validating fluent keyword against slug value. - Fixes exceptions thrown message via
Orchestra\Authorization\Fluent
.
- Add
v3.0.1
- Replace deprecated
Illuminate\Auth\UserProviderInterface
contract withIlluminate\Contracts\Auth\UserProvider
.
v3.0.0
- Update support for Laravel Framework v5.0.
- Split components to two (2) sub-components; Auth and Authorization.
- Rename
Orchestra\Auth\Acl
namespace toOrchestra\Authorization
. - Auth:
- Simplify
Orchestra\Auth\AuthServiceProvider
. Orchestra\Auth\Guard
should get user identity fromgetAuthIndetifier()
method.- Moved password recovery code from
orchestra/foundation
.
- Simplify
- Authorization:
- Add
Orchestra\Authorization\AuthorizationServiceProvider
. - Rename
Orchestra\Auth\Acl\Container
toOrchestra\Authorization\Authorization
. - Remove deprecated
Orchestra\Auth\Acl\Fluent::fill()
method, useattach()
instead.
- Add
Version 2.2
v2.2.1
- Use long text fields for
user_meta.value
. - Use configuration value for password reminder table instead of hardcoded value.
- Implement
Illuminate\Support\Arr
.
v2.2.0
- Bump minimum version to PHP v5.4.0.
- Rename
Orchestra\Auth\Acl\Environment
toOrchestra\Auth\Acl\Factory
. - Remove
users.email
andusers.password
field length to maximize future compatible.
Version 2.1
v2.1.6
- Remove
users.email
andusers.password
field length to maximize future compatible.
v2.1.5
- Add migration to add
remember_token
tousers
table.
v2.1.4
- Allow custom auth driver to resolve
Orchestra\Auth\Guard
. - Implement PSR-4 autoloading structure.
v2.1.3
- Add
Orchestra\Auth\Acl\Fluent::getSlugFromName()
helper method. - Ensure only ACL metric information is synced to
orchestra/memory
. - Add
Orchestra\Auth\Acl\Fluent::findKey()
helper method. - Multiple refactor.
v2.1.2
- Fixes invalid result when using
Auth::isNot()
andAuth::isNotAny()
helper method.
v2.1.1
- Add ability to append
Eloquent
result directly to assign roles. E.g:$acl->roles()->add(Orchestra\Model\Role::admin())
. - Avoid throwing
RuntimeException
when trying to attach the same Memory instance to ACL. - Add
Auth::isAny()
,Auth::isNot()
andAuth::isNotAny()
helper class.
v2.1.0
- Add
Orchestra\Auth\Acl\Fluent::attach()
andOrchestra\Auth\Acl\Fluent::detach()
method. - Call
Illuminate\Auth\AuthServiceProvider::boot()
during booting. Orchestra\Auth\Acl\Container
should extendOrchestra\Memory\Abstractable\Container
.- Predefined package path to avoid additional overhead to guest package path.
- Change
Orchestra\Auth\AuthManager::createDatabaseDriver()
visibility based on upstream changes. - Directly inject
session.store
instance instead ofsession
(Session Manager) instance based on upstream changes. - Suggest orchestra/model.
- Rename command to
php artisan auth:migrate
. - Add
Auth::setup()
method to easily create roles event listener. - Replace
DateTime
withCarbon
on basic roles seeding migration to avoid exception to be thrown when usingphp artisan debug
(Laravel v4.1). - Move commands to it's own service provider.
- Internal refactor to reduce code complexity.
- Implement PSR-2 coding standard.
Version 2.0
[email protected]
- Add migration to add
remember_token
tousers
table. - Remove
users.email
andusers.password
field length to maximize future compatible.
v2.0.6
- Replace
DateTime
withCarbon
on basic roles seeding migration to avoid exception to be thrown when usingphp artisan debug
(Laravel v4.1). - Move commands to it's own service provider.
- Add indexs to
OrchestraAuthCreatePasswordRemindersTable
migration. - Internal refactor to reduce code complexity.
- Implement PSR-2 coding standard.
v2.0.5
- Change
Orchestra\Auth\AuthManager::createDatabaseDriver()
visibility based on upstream changes. - Directly inject
session.store
instance instead ofsession
(Session Manager) instance based on upstream changes. - Suggest orchestra/model.
v2.0.4
Orchestra\Auth\Acl\Container
should extendOrchestra\Memory\Abstractable\Container
.
v2.0.3
- Fixed a problem accessing
Auth::is()
when user is actually not logged in, and also append the default "Guest" role when accessingAuth::roles()
.
v2.0.2
- Add
Orchestra\Auth\Acl\Fluent::attach()
andOrchestra\Auth\Acl\Fluent::detach()
method. - Call
Illuminate\Auth\AuthServiceProvider::boot()
during booting.
v2.0.1
- Code improvements.
v2.0.0
- Migrate
Orchestra\Auth
from Orchestra Platform 1.2. - Move event
orchestra.auth: roles
toOrchestra\Auth
. Note that this would make it incompatible with any auth driver which is not based onEloquent
. - Deprecate
orchestra.auth: login
andorchestra.auth: logout
, useauth.login
andauth.logout
event instead. - Add command line utility via
Orchestra\Auth\Console\AuthCommand
. - Add soft deletes to migration schema.
- Add password reminders migration from Laravel 4.
- Fixed
Orchestra\Auth\Guard::is()
should accept array. - Rename
Orchestra\Auth\Acl\Environment::shutdown()
toOrchestra\Auth\Acl\Environment::finish()
.