kodeine / laravel-acl

Light-weight role-based permissions system for Laravel 6+ built in Auth system.
MIT License
786 stars 216 forks source link

Added: Different guard support #267

Closed CodeIgor closed 1 year ago

CodeIgor commented 2 years ago

This fixes handling of a different guard other than application default.

Fixes: #135.

  /**
   * Guard
   * Set the guard for user validations.
   */
  'guard' => config('auth.defaults.guard'),
kodeine commented 2 years ago

@CodeIgor could you please update the readme file as well to support this update

CodeIgor commented 2 years ago

@kodeine Sure, feel free to tell me if there is something else needed Update README.md

kodeine commented 1 year ago

@CodeIgor sorry for very late reply, it just slipped from my todo list.

So, endpermission and endrole was removed, can we make it backwards compatible?

CodeIgor commented 1 year ago

@kodeine done, i changed the used directive back to how it was but with the guard method call

kodeine commented 1 year ago

Thank you!