Manage Reaction Types
Reaction type required to react to content.
Create a list of default reaction types (Like & Dislike) or create your own build!
Add Default Types
$ php artisan love:reaction-type-add --default
In Artisan execute love:reaction-type-add command with --default flag to add Like and Dislike types to application. Reactant's total weight increments +1 with each Like and decrements -1 with Dislike.
If
LikeorDisliketype already exists in application - command will add only missing types.
Add Custom Type
$ php artisan love:reaction-type-add
Type names transformed to StudlyCase.
Namevery-goodwill be converted toVeryGood.
Pass name & weight arguments in command line to skip interaction.
$ php artisan love:reaction-type-add Hate -4
Updated over 6 years ago
Next Page
