app/Api/V1/Controllers/TaskTypeController.php
/**
     * Display task type by id
     *
     * @param string $id
     * @return TaskType
     */
Display task type by id
@param string $id
@return TaskType
Display task type by id @param string $id @return TaskType
public function show($id)
    {
        if ($taskType = TaskType::find($id)) {
            return $taskType;
        }
        return $this->withMessage('Task type is not found', 404);
    }
public function show ( $ id ) { if ( $ taskType = TaskType :: find ( $ id ) ) { return $ taskType ; } return $ this -> withMessage ( 'Task type is not found' , 404 ) ; }
Display task type by id
 @param string $id
 @return TaskType
Display task type by id @param string $id @return TaskType