vendocrat / laravel-followers
Build a poly-morph Follower system or simply associate Eloquent models in Laravel 5.
Installs: 255
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 3
Forks: 2
pkg:composer/vendocrat/laravel-followers
Requires
- php: ^7.2.5|^8.0
- illuminate/database: ^6.0|^7.0|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
Requires (Dev)
- doctrine/dbal: ^2.12
- laravel/framework: ^6.0|^7.0|^8.0
- mockery/mockery: ~1.0
- orchestra/testbench: ^4.0|^5.0|^6.0
- phpunit/phpunit: ^8.0|^9.0
This package is not auto-updated.
Last update: 2022-02-01 12:50:56 UTC
README
Laravel Followers
Build a poly-morph follower system or simply associate Eloquent models in Laravel.
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
Configuration & Migration
$ php artisan vendor:publish --provider="Lecturize\Followers\FollowersServiceProvider"
This will publish a config/lecturize.php and some migration files, that you'll have to run:
$ php artisan migrate
For migrations to be properly published ensure that you have added the directory database/migrations to the classmap in your projects composer.json.
License
Licensed under MIT license.
Author
Handcrafted with love by Alexander Manfred Poellmann in Vienna & Rome.