app/Api/V1/Controllers/DocumentTypeController.php
/**
     * Display document type by id
     *
     * @param string $id
     * @return DocumentType
     */
Display document type by id
@param string $id
@return DocumentType
Display document type by id @param string $id @return DocumentType
public function show($id)
    {
        if ($documentType = DocumentType::find($id)) {
            return $documentType;
        }
        return $this->withMessage('Doc type not found', 404);
    }
public function show ( $ id ) { if ( $ documentType = DocumentType :: find ( $ id ) ) { return $ documentType ; } return $ this -> withMessage ( 'Doc type not found' , 404 ) ; }
Display document type by id
 @param string $id
 @return DocumentType
Display document type by id @param string $id @return DocumentType