Skip to content

Releases: chrisbjr/api-guard

Fix for new installations to prevent Integrity constraint violations

03 May 07:02
Compare
Choose a tag to compare

New feature lets users reference requests to api_key_id in the api_logs table but requests not logged will throw an SQLException SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails because api_key_id is not set to nullable.

Fix is simply making it nullable as described in #48

Backport logging feature of v2.1+

02 May 19:59
Compare
Choose a tag to compare
Backport features from v2.x

Specifically, commits 529424eb5a3e06c4d884d49e5ffd1fb65d60fa67, 586297331d95c6ed9a1f011ea3f9d919b695de38

Access the ApiLog instance from the controller

23 Apr 18:29
Compare
Choose a tag to compare

Useful if we want to reference an API call to a transaction.

Hotfix for api-key generation

17 Apr 14:20
Compare
Choose a tag to compare

Logging at method level

08 Apr 04:51
Compare
Choose a tag to compare

You can set logging at method level by using the logged option. By default for all methods in api-guard, the option logged is set to true. Set it to false to exclude that method for logging.

Laravel 5.0 Public Release

08 Apr 04:54
Compare
Choose a tag to compare

Laravel 4.2.x Public Release

08 Apr 05:05
Compare
Choose a tag to compare

Note that upgrading to this release from old ones will require you to change the namespaces of some classes.

  • Chrisbjr\ApiGuard\ApiGuardController to Chrisbjr\ApiGuard\Controllers\ApiGuardController
  • Chrisbjr\ApiGuard\ApiKey to Chrisbjr\ApiGuard\Models\ApiKey