3.2 documentation

Version 3.2

v3.2.6

  • Authorization:
    • Rename Orchestra\Authorization\AuthorizationTrait to Orchestra\Authorization\Permission.

v3.2.5

  • Auth:
    • Cast Orchestra\Auth\SessionGuard::$userRoles value to array if set to null to avoid invalid use of Illuminate\Support\Arr.

v3.2.4

  • Authorization:
    • Fixes authorization to support checking multiple roles.

v3.2.3

v3.2.2

  • Auth:
    • Pass email value into password reset link template.

v3.2.1

  • Auth:
    • Use nullable timestamps to avoid issues with created_at fields updating on every row update.
    • Refactor OrchestraAuthAddRememberTokenToUsersTable migration to only add remember_token field if it's not available.

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 of Illuminate\Support\Collection etc.
  • Authorization:
    • Return $this from Orchestra\Authorization\Authorization when attaching memory instance, following convension from Orchestra\Memory\ContainerTrait.
    • Allow Orchestra\Authorization\Fluent::attach() and Orchestra\Authorization\Fluent::detach() to support Illuminate\Contracts\Support\Arrayable contract.
    • Remove Orchestra\Authorization\Fluent::exist().
    • Add Orchestra\Authorization\Policy.
    • Remove Orchestra\Authorization\Keyword, use Orchestra\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 calling Orchestra\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 of Orchestra\Contracts\Auth\Guard from $acl instance.

Version 3.1

v3.1.10

  • Auth:
    • Cast Orchestra\Auth\Guard::$userRoles value to array if set to null to avoid invalid use of Illuminate\Support\Arr.

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.

v3.1.7

  • Authorization:
    • Return $this from Orchestra\Authorization\Authorization when attaching memory instance, following convension from Orchestra\Memory\ContainerTrait.
    • Allow Orchestra\Authorization\Fluent::attach() and Orchestra\Authorization\Fluent::detach() to support Illuminate\Contracts\Support\Arrayable contract.
    • Deprecate Orchestra\Authorization\Fluent::exist() and replace it with Orchestra\Authorization\Fluent::exists().

v3.1.6

  • Authorization:
    • Add Orchestra\Authorization\Policy.
    • Remove Orchestra\Authorization\Keyword, use Orchestra\Support\Keyword instead.

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 calling Orchestra\AuthorizationTrait::revokeUser().

v3.1.4

  • Improved performances by reducing call within Illuminate\Container\Container.
  • Authorization:
    • Reduces call to Orchestra\Authorization\Keyword on known keyword.

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.

v3.1.2

  • Authorization:
    • Add Orchestra\Authorization\AuthorizationTrait::auth() helper to get instance of Orchestra\Contracts\Auth\Guard from $acl instance.

v3.1.1

  • Bump minimum version to PHP v5.5.0.
  • Auth:
    • Ensure Orchestra\Auth\Guard::getUserRolesFromEventDispatcher() return array instead of Illuminate\Support\Collection etc.

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.

v3.0.1

  • Replace deprecated Illuminate\Auth\UserProviderInterface contract with Illuminate\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 to Orchestra\Authorization.
  • Auth:
    • Simplify Orchestra\Auth\AuthServiceProvider.
    • Orchestra\Auth\Guard should get user identity from getAuthIndetifier() method.
    • Moved password recovery code from orchestra/foundation.
  • Authorization:
    • Add Orchestra\Authorization\AuthorizationServiceProvider.
    • Rename Orchestra\Auth\Acl\Container to Orchestra\Authorization\Authorization.
    • Remove deprecated Orchestra\Auth\Acl\Fluent::fill() method, use attach() instead.

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 to Orchestra\Auth\Acl\Factory.
  • Remove users.email and users.password field length to maximize future compatible.

Version 2.1

v2.1.6

  • Remove users.email and users.password field length to maximize future compatible.

v2.1.5

  • Add migration to add remember_token to users 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() and Auth::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() and Auth::isNotAny() helper class.

v2.1.0

  • Add Orchestra\Auth\Acl\Fluent::attach() and Orchestra\Auth\Acl\Fluent::detach() method.
  • Call Illuminate\Auth\AuthServiceProvider::boot() during booting.
  • Orchestra\Auth\Acl\Container should extend Orchestra\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 of session (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 with Carbon on basic roles seeding migration to avoid exception to be thrown when using php 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 to users table.
  • Remove users.email and users.password field length to maximize future compatible.

v2.0.6

  • Replace DateTime with Carbon on basic roles seeding migration to avoid exception to be thrown when using php 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 of session (Session Manager) instance based on upstream changes.
  • Suggest orchestra/model.

v2.0.4

  • Orchestra\Auth\Acl\Container should extend Orchestra\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 accessing Auth::roles().

v2.0.2

  • Add Orchestra\Auth\Acl\Fluent::attach() and Orchestra\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 to Orchestra\Auth. Note that this would make it incompatible with any auth driver which is not based on Eloquent.
  • Deprecate orchestra.auth: login and orchestra.auth: logout, use auth.login and auth.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() to Orchestra\Auth\Acl\Environment::finish().