Lecturize / Laravel-Followers by AlexanderPoellmann

Build a poly-morph Follower system or simply associate Eloquent models in Laravel 5.
1,358
12
3
Package Data
Maintainer Username: AlexanderPoellmann
Package Create Date: 2015-09-03
Package Last Update: 2023-02-21
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 15:16:11
Package Statistics
Total Downloads: 1,358
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 12
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Latest Stable Version Total Downloads License

Laravel Followers

Build a poly-morph Follower system or simply associate Eloquent models in Laravel 5.

Important Notice

This package is a work in progress, please use with care and feel free to report any issues or ideas you may have!

We've transferred this package to a new owner and therefor updated the namespaces to Lecturize\Followers. The config file is now config/lecturize.php.

Installation

Require the package from your composer.json file

"require": {
    "lecturize/laravel-followers": "dev-master"
}

and run $ composer update or both in one with $ composer require lecturize/laravel-followers.

Next register the service provider and (optional) facade to your config/app.php file

'providers' => [
    // Illuminate Providers ...
    // App Providers ...
    Lecturize\Followers\FollowersServiceProvider::class
];

Configuration & Migration

$ php artisan vendor:publish --provider="Lecturize\Followers\FollowersServiceProvider"

This will create a config/lecturize.php and a migration file. In the config file you can customize the table names, finally you'll have to run migration like so:

$ php artisan migrate

License

Licensed under MIT license.

Author

Handcrafted with love by Alexander Manfred Poellmann in Vienna & Rome.