app/DocumentFormat.php
/**
     * check that the passed DocumentFormats are available in db
     *
     * @return ids of valid DocumentFormats|bool
     */
check that the passed DocumentFormats are available in db
@return ids of valid DocumentFormats|bool
check that the passed DocumentFormats are available in db @return ids of valid DocumentFormats|bool
public function areValidDocumentFormats(array $documentFormats = [])
    {
        if ($documentFormats === array_intersect($documentFormats, $this->pluck('id')->toArray())) {
            return $documentFormats;
        }
        return false;
    }
public function areValidDocumentFormats ( array $ documentFormats = [ ] ) { if ( $ documentFormats === array_intersect ( $ documentFormats , $ this -> pluck ( 'id' ) -> toArray ( ) ) ) { return $ documentFormats ; } return false ; }
check that the passed DocumentFormats are available in db
 @return ids of valid DocumentFormats|bool
check that the passed DocumentFormats are available in db @return ids of valid DocumentFormats|bool