public function moveTask(Task $task) { $parent = Task::find(Input::get('parent_id')); $task->makeChildOf($parent); return $task; }