Releases: marcotas/laravel-bullet
Releases · marcotas/laravel-bullet
Fix QueryBuilder 2+ compatibility
Laravel 6+ compatible
v1.2.0 Make it compatible with laravel 6+
Small Improvements
- 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 ofBullet::namespace
method
Removed http method prefix from route names
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
v1.0.9 Fix Policy usage when set to false.
Remove type hints from index actions
This improves the API usage for the index action.
Make it compatible with php 7.2+
v1.0.7 Make compatible with php 7.2
Modularize middlewares registration
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 methodregisterMiddleware()
inside of it instead.
Fix bullet routes to work with other controllers
- 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
Fix the route name to use the name of the controller.