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; }
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; }