Skip to content

Releases: marcotas/laravel-bullet

Fix QueryBuilder 2+ compatibility

01 Oct 02:44
bb9e44a
Compare
Choose a tag to compare
Fix allowedFields before allowedIncludes

The allowedFields must be called before allowedIncludes in QueryBuilder 2+

Laravel 6+ compatible

01 Oct 01:53
Compare
Choose a tag to compare
v1.2.0

Make it compatible with laravel 6+

Small Improvements

07 Aug 19:37
Compare
Choose a tag to compare
  • The index action now accepts custom Request classes like other actions
  • The index action now is validated under Policy classes like other actions
  • Add except option to second parameter of Bullet::namespace method

Removed http method prefix from route names

31 Jul 16:48
Compare
Choose a tag to compare
Remove route name prefixed by http method

The http method were prefixed in the route name of custom actions
in the controller. Now the http method prefix was removed.

Fix policy usage when false

29 Jul 16:06
Compare
Choose a tag to compare
v1.0.9

Fix Policy usage when set to false.

Remove type hints from index actions

24 Jul 21:22
Compare
Choose a tag to compare

This improves the API usage for the index action.

Make it compatible with php 7.2+

23 Jul 20:42
Compare
Choose a tag to compare
v1.0.7

Make compatible with php 7.2

Modularize middlewares registration

15 Jul 13:51
Compare
Choose a tag to compare

Now you can use the middleware registration adding a simple trait to your controllers. No need use it in your constructor anymore.

use App\Http\Controllers\Controller;
use MarcoT89\Bullet\Traits\BulletMiddlewares;

class CommonController extends Controller // note that it doesn't extends from ResourceController. It can be ANY of your controllers
{
    use BulletMiddlewares;

    protected $middleware = 'auth'; // see the laravel-bullet doc for more options.
}

You should remove your __construct in your controller to make it work. If you can't remove the __construct use the method registerMiddleware() inside of it instead.

Fix bullet routes to work with other controllers

15 Jul 12:13
Compare
Choose a tag to compare
  • Before these changes it was not possible to use bullet routes with other
    controllers.
  • make it to work without the properties commonly used
    with ResourceController like: $only, $except, $model etc.

Fix route names resolutions

13 Jul 19:03
Compare
Choose a tag to compare

Fix the route name to use the name of the controller.