mchev / banhammer Goto Github PK
View Code? Open in Web Editor NEWBanhammer for Laravel offers a simple way to ban any Model by ID, UUID and by IP or Country.
License: MIT License
Banhammer for Laravel offers a simple way to ban any Model by ID, UUID and by IP or Country.
License: MIT License
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.
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.
Is not possible ban an user forever.
1.1.5
8.1
10
Linux
No response
Checking model is banned while looping on list make N+1 Query even the relationship is eager loaded.
$users = User::with(['bans'])->get();
foreach ($users as $user) {
$user->isBanned();
}
1.2.0
8.2.6
10.13.2
macOS
No response
use the library then error
// My code
Route::get('/ban-user', function () {
$user = User::findOrFail(1);
$user->ban();
});
// Error
$user->ban();
Call to undefined method App\Models\User::ban()
2.0
8.0.26
9.19
No response
No response
Is it possible to add expiration date for banned IPs?
Is it possible to add expiration date for banned IPs?
last
8.1
10
Linux
No response
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.
NA
1.1
8.1
10
Linux
No response
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.