PHPackages                             ghanem/friendship - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ghanem/friendship

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ghanem/friendship
=================

A polymorphic friendship system for Laravel — friend requests, blocking, mutual friends, and events.

v2.1.0(2w ago)19267[2 issues](https://github.com/gaitco/friendship/issues)1MITPHPPHP ^8.1

Since Oct 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/gaitco/friendship)[ Packagist](https://packagist.org/packages/ghanem/friendship)[ RSS](/packages/ghanem-friendship/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (5)Versions (6)Used By (1)

Laravel Friendship
==================

[](#laravel-friendship)

This package will allow you to add a full report system into your Laravel application.

Installation
------------

[](#installation)

First, pull in the package through Composer.

```
composer require ghanem/friendship
```

And then include the service provider within `app/config/app.php`.

```
'providers' => [
    Ghanem\Friendship\FriendshipServiceProvider::class
];
```

At last you need to publish

```
php artisan vendor:publish --provider="Ghanem\Friendship\FriendshipServiceProvider"

```

and run the migration.

```
php artisan migrate

```

Setup a Model
-------------

[](#setup-a-model)

```
