Download the PHP package miladimos/laravel-social without Composer
On this page you can find all versions of the php package miladimos/laravel-social. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download miladimos/laravel-social
More information about miladimos/laravel-social
Files in miladimos/laravel-social
Package laravel-social
Short Description a full and simple toolkit for social networks
License MIT
Homepage https://github.com/miladimos/laravel-social
Informations about the package laravel-social
Laravel social package
A toolkit package for social networks
Installation
-
Run the command below to add this package:
-
Open your config/socials.php and add the following to the providers array:
-
Run the command below to install package:
- Run the command below to migrate database:
Features
Tag:
First add Taggable
trait to models that you want have tags
Second you can work with tags:
tag model have soft deletes trait.
Like
Bookmark
Follow
Category
First add Taggable
trait to models that you want have attachments
Methods
in controllers you have these methods:
Features
Like
Favorite
Bookmark
Follow \ Unfollow
Comment
$post = Post::find(1);
$post->comment('This is a comment');
$post->commentAsUser($user, 'This is a comment from someone else'); $comment = $post->comments->first();
$comment->approve();
Auto Approve Comments implements Commentator needsCommentApproval false
// Retrieve all comments $comments = $post->comments;
// Retrieve only approved comments $approved = $post->comments()->approved()->get();
Vote / Rate System