Giter Club home page Giter Club logo

banhammer's People

Contributors

dannydinges avatar kieranlproctor avatar mchev avatar mepsd avatar yazeedalsaif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

banhammer's Issues

Support UUIDs (or publish migrations)

Our system uses UUIDs, and the current migrations dont support it. We're left with the choice of running a second migration to fix the first one, or forking the package.

Having UUID support would be great, but if thats not possible then publishing the migrations instead of loading them would provide the necessary level of customisability.

Banning models forever

What happened?

There is a method for banning users until specific date: $user->banUntil('2 days'); But, What if I need ban that user forever?
Sorry about creating this discussion as bug, link for "Request a feature" doesn't works.

How to reproduce the bug

Is not possible ban an user forever.

Package Version

1.1.5

PHP Version

8.1

Laravel Version

10

Which operating systems does with happen with?

Linux

Notes

No response

[Bug]: N+1 Query when checking model is banned

What happened?

Checking model is banned while looping on list make N+1 Query even the relationship is eager loaded.

How to reproduce the bug

$users = User::with(['bans'])->get();
foreach ($users as $user) {
    $user->isBanned();
}

Package Version

1.2.0

PHP Version

8.2.6

Laravel Version

10.13.2

Which operating systems does with happen with?

macOS

Notes

No response

$user->ban(); Not Working

What happened?

use the library then error

How to reproduce the bug

// My code
Route::get('/ban-user', function () {

$user = User::findOrFail(1);
$user->ban();

});

// Error

$user->ban();

Call to undefined method App\Models\User::ban()

Package Version

2.0

PHP Version

8.0.26

Laravel Version

9.19

Which operating systems does with happen with?

No response

Notes

No response

[feature request]: Expiration date for banned IPs

What happened?

Is it possible to add expiration date for banned IPs?

How to reproduce the bug

Is it possible to add expiration date for banned IPs?

Package Version

last

PHP Version

8.1

Laravel Version

10

Which operating systems does with happen with?

Linux

Notes

No response

[Feat]: What about having custom properties while banning user

What happened?

I was wondering if there was a way to set custom properties while banning a user; I know there is a comment field for that, but it would be great if we could save the activity, limit API requests, or prevent access to data that the user shouldn't be seeing; all of these things could be options where they could pass these custom properties and see whenever they review.

How to reproduce the bug

NA

Package Version

1.1

PHP Version

8.1

Laravel Version

10

Which operating systems does with happen with?

Linux

Notes

No response

Add configurable Model

Some package usually allow to modify the Model that the package is use. This will allow user to add some functionality to package model, for example adding a cache layer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.