Download the PHP package timgavin/laravel-block without Composer
On this page you can find all versions of the php package timgavin/laravel-block. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download timgavin/laravel-block
More information about timgavin/laravel-block
Files in timgavin/laravel-block
Package laravel-block
Short Description A User can block another User
License MIT
Homepage https://github.com/timgavin/laravel-block
Informations about the package laravel-block
Laravel Block
A simple Laravel package for blocking users.
Requirements
- Laravel 9 or greater.
- Laravel
User
model.
Installation
Via Composer
Import Laravel Block into your User model and add the trait.
Then run migrations.
Usage
Block a user.
Unblock a user.
Check if a user is blocking another user.
Check if a user is blocked by another user.
Returns the users a user is blocking.
Returns the users who are blocking a user.
Returns an array of IDs of the users a user is blocking.
Returns an array of IDs of the users who are blocking a user.
Returns an array of IDs of the users a user is blocking, and who is blocking a user
Caches the IDs of the users a user is blocking. Default is 1 day.
Returns an array of IDs of the users a user is blocking.
Caches the IDs of the users who are blocking a user. Default is 1 day.
Returns an array of IDs of the users who are blocking a user.
Clears the Blocking cache
Clears the Blockers cache
Change log
Please see the changelog for more information on what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
MIT. Please see the license file for more information.