예제 #1
0
 public function comment(Task $task)
 {
     $comment = Comment::create(['content' => Input::get('content'), 'task_id' => $task->id, 'project_id' => $task->project_id, 'user_id' => \Auth::user()->id]);
     return $comment;
 }