public function saveComment($comments, $date, $invoiceid, $commentmode = NULL) { $comment = new comments(); $comment->text = ucfirst(strtolower($comments)); $comment->date = $date; $comment->invoice_id = $invoiceid; $comment->commentmode = $commentmode; $comment->save(); }
public function saveComment($comments, $date, $invoiceid) { $comment = new comments(); // $result = paymentrecieved::create($data); $comment->text = ucfirst(strtolower($comments)); $comment->date = $date; $comment->invoice_id = $invoiceid; $comment->save(); }
public function newComment() { $data = json_decode(urldecode(base64_decode(Input::get('data')))); $content = $data->content; $poster = $data->poster; $linkId = $data->linkId; $comment = new comments(); $comment->content = $content; $comment->poster = $poster; $comment->linkId = $linkId; $comment->save(); //increment error return linkpreview::findOrFail($comment->linkId); }