Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bannable trait #92

Closed
aliqasemzadeh opened this issue Mar 31, 2023 · 2 comments
Closed

bannable trait #92

aliqasemzadeh opened this issue Mar 31, 2023 · 2 comments

Comments

@aliqasemzadeh
Copy link

Hi

Cog\Laravel\Ban\Services\BanService::ban(): Argument #1 ($bannable) must be of type Cog\Contracts\Ban\Bannable, App\Models\User given, called in /home/project/vendor/cybercog/laravel-ban/src/Traits/HasBannedAtHelpers.php on line 74

I get this error in my project why do I get this error.

@antonkomarev
Copy link
Member

User should implement Bannable interface. Add implements Bannable after the class name

@aliqasemzadeh
Copy link
Author

Thanks I should add implements BannableInterface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants