We are looking for someone familiar with Laravel to help us make a "bundle" and implement it into our design using our mock-ups, our examples and our graphical elements as a guide.
- This is a commenting system specific bundle
- Both the user and admin interface need to work and be integrated with JS/JQuery, this will be in view templates broken into small segments for re use.
- We provide a templated CRUD system to abide by.
- We provide a basic bundle template to follow.
Project Details for The Developer
CRUD Functionality Required:
Create:
$comment = new Comment;
$comment->user_id = 23;
$comment->message = "This is a demo comment”;
...
$comment->save()
Update:
$comment = Comment::find( $id );
$comment->message = "This is an edited message”;
...
$comment->update();
Delete:
$comment = Comment::find( $id );
$comment->delete();
Read:
$comment = Comment::find( $id );
Fetch All:
$comment = Comment::all( ‘video' );
A content type can be passed if we want to get all for specific content, or if nothing is passed get everything.
Display the Comments:
Comment::display();
Using that static function Comment::display() to display a textarea box with the comments. The textarea box needs to post a new comment using ajax and display it at top of all the comments. This should be done with jquery.
You can pass variables to the display() method to identify the user as well as type of content.
Comment::display( $user_id, “video” );
The textarea for posting comments will be for a "video" for the $user_id that is passed. It’s important to create a token so that users don’t try and change the user_id before posting a message.
Comments need to be threaded if it’s a reply, like in the visual mockup.
Features required:
- Threshold time delay in between posting a comment. Set this threshold in the config file.
- Protect against users changing the user_id when posting comments.
- Verify the user only likes or dislikes once.
- Verify the user only flags once.
- Comments have status 'waiting' when first posted. This will show the comment to the posting user, but hidden from everyone else.
- Approved comments are visible to everyone.
- Flagged comments are visible to the posting user, but hidden to everyone else.
- Threshold for amount of flags the comment requires before it's moved to Flagged status. Set this threshold in the config file.
This is an opening project that could lead to regular work on other similar projects.
Skills required:
PHP, Laravel, jquery, js, HTML, CSS