PHPackages                             softservlet/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. softservlet/friendship

ActiveLibrary

softservlet/friendship
======================

09PHP

Since Jan 26Pushed 12y ago2 watchersCompare

[ Source](https://github.com/softservlet/friendship-management)[ Packagist](https://packagist.org/packages/softservlet/friendship)[ RSS](/packages/softservlet-friendship/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

friendship-management
=====================

[](#friendship-management)

#### Package description

[](#package-description)

A laravel package which provides a "friendship" management between two entities. The relationship is called "friendship" in this package , but you can use this plugin to manage any relationship between two entities.

#### Installation

[](#installation)

The package have implementation only for Laravel 4 framework.

- Run database migration:

`php artisan --bench=softservlet\friendship`

- Add the provider into app/config/app.php array, at the 'providers' index

`'Softservlet\Friendship\Laravel\Providers\LaravelFriendshipServiceProvider'`

- Define the entities.

The package give you the responsability to create the entity object. The next example will ilustrate you how to create a friendship between an object defined in your application in `App\User\User`

Your object must implements FriendableInterface, so you may have the following class into App\\User.

```
